Wednesday, March 24, 2010

<?= ?> not working in PHP

If you have just installed PHP 5 you may note that php shorthand is not enabled.

To fix this problem edit you php.ini file and change the following

short_open_tag = off

to

short_open_tag = on

Restart the server - or restart your machine

Your code should now work.