Quick PHP question

Associate
Joined
14 Dec 2005
Posts
563
Location
Dublin
Hi, Using PHP 5.2.0 on Apache on a Windows machine.

the "<?= $vWhatever ?>" shorthand method for echoing variables isn't working. It's not being parsed by PHP so that little bit of code is appearing as HTML code when I do a view source in the browser.

Do I need to turn something on? Has it got something to do with needing to open PHP blocks with "<?php" rather than "<?" ?

Ta :)
 
Yep, "short tags" isn't turned on. You can do this by editing the php.ini file, otherwise you'll need to use <?php ?> for your PHP blocks.
 
Back
Top Bottom