PHP Expert Programmer

Just another WordPress.com weblog

Archive for April, 2009

Short open tags not work in php5.2.0 and not in php5.2.3

Posted by sarapeter on April 20, 2009

Short open tags not work in php5.2.0 and not in php5.2.3

My advice was to put short_open_tag = On in the php.ini file.

The server status is short_open_tag = Off

I set this to short_open_tag = On in the php.ini file in the root of the site.

This did not work but when I renamed the php.ini file to php5.ini this corrected this issue.

However I did not immediately notice but this blocked out the server php.ini file – this start a major component working as it also blocked out zend optimizer.

I have read more about the issue of the short tag.

I have in my limited experience of php coding always used <!–p and not <?
There appears to be a number opinions that setting short_open_tag = On can cause problems where there are xml files as attempts will be made to parse these.

I have been through every php file in the component – I can’t find a short code anywhere in the files.

Posted in Php Codes, Php Errors, Php Security | Tagged: , , , | Leave a Comment »