How to enable <? to recognise as a php tag

Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to enable <? to recognise as a php tag

Post by Saman » Mon Jun 28, 2010 4:59 pm

If you were migrating your existing web site written in php4 to php5, you might have encountered that the <? is not recognised as a php open tag. This is due to a setting in php.ini file.

Find following setting,

Code: Select all

short_open_tag = Off
Change it to,

Code: Select all

short_open_tag = On
Post Reply

Return to “PHP & MySQL”