I'm setting up an Apache2, PHP 5.3.3 server running on CentOS 6. My web application uses the short tags <?
and <?=
. I can't seem to get the short tags enabled. When I run phpinfo()
I see short_open_tag = off
, however in /etc/php.ini
I have this: short_open_tag = on
(and yes I've restarted the server).
I've also tried using <?php ini_set('short_open_tag','1'); ?>
at the start of a page and it still doesn't parse code in short tags.
The only thing I can think of is there's another php.ini
file somewhere that is being used instead of, or overriding the one at /etc/php.ini
.
Any advice?