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?

asked Aug 6, 2017 by anonymous

1 Answer

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

answered Sep 7, 2017 by Eric Z Ma (44,200 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost