How to disable PHP short open tags?

Some of my pages has XML tags like ‘<?xml ?>’ which are considered by PHP as short open tags ‘<? ?>’. How to disable PHP short open tags?

In PHP, to disable the short open tags, you can set the variable

short_open_tags = FALSE;

in your php.ini.

Reference: short_open_tags in php.ini

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *