my localhost php does not interpret properly, help needed

Discussion in 'PHP' started by toby, Dec 11, 2007.

  1. #1
    Hi guys,

    I set up my window vista IIS 7 with php 5 and it does not work properly. For example:

    when i do a <? phpinfo(); ?> , it wont show up any data but when i put up <?php phpinfo(); ?>, it shows fine.

    Furthermore, when i put <?=$variable;?> , it won't show up too, unless i put <?php echo $variable; ?>

    Help please.
    toby
     
    toby, Dec 11, 2007 IP
  2. Gawk

    Gawk Peon

    Messages:
    427
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Edit your php.ini to allow short tags...
    Uncomment this line: short_open_tag = On
    Restart apache
     
    Gawk, Dec 11, 2007 IP
    toby likes this.
  3. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #3
    u rock, mate. thanks for the info (rep added)
     
    toby, Dec 11, 2007 IP
  4. Gawk

    Gawk Peon

    Messages:
    427
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You are welcome, tnx for the rep ;)
     
    Gawk, Dec 11, 2007 IP