The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there any CPanel evuivalent of the PHP DEFINE command

Discussion in 'General Discussion' started by Roy@ENHOST, Jun 20, 2003.

  1. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    Hi guys is there any Cpanel equivalent of the PHP DEFINE command?

    e.g.

    <?php
    define ("CONSTANT", "Hello world.");
    echo CONSTANT; // outputs "Hello world."
    ?>


    How do we convert this to Cpanel 'language' ????

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  2. Damian

    Damian Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    To set it use:

    PHP:
    <cpanel setvar="name=This is the value">
    and use the following to display it:

    PHP:
    <cpanel printvar="name">
    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  3. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    Thanks a million!
    It works!

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page