How do you use PHP commands in <<< mode?

Discussion in 'PHP' started by Imozeb, Feb 24, 2010.

  1. #1
    I want to use PHP commands in <<< mode to echo out variables. When I try to use <?PHP and ?> tags to enclose the echo command it gives me an error. How can I fix this?
     
    Imozeb, Feb 24, 2010 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    JAY6390, Feb 24, 2010 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    did you alter some codes in your apache or php.ini??
    didnt get that "<<<mode"
     
    bartolay13, Feb 24, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    <?php
    
    echo <<<mode
    hey see this works?, make sure you have no spacing when you close it... especially if you format it...
    mode;
    
    ?>
    PHP:
     
    danx10, Feb 25, 2010 IP