PHP short_open_tag Won't Enable (CentOS 6)
Posted
by
brack
on Server Fault
See other posts from Server Fault
or by brack
Published on 2012-09-03T18:56:47Z
Indexed on
2012/09/03
21:39 UTC
Read the original article
Hit count: 289
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?
© Server Fault or respective owner