PHP short tags do not work?

Started by Administrator, December 15, 2013, 12:12:51 AM

Previous topic - Next topic

Administrator

If you have problem that your short tags in php do not work like eg. <? and ?> you can fix this with this command: run it as root:

sed -i "s|short_open_tag = Off|short_open_tag = On|" /etc/php.ini

and restart your apache server over CentOS Web Panel (CWP) or with command:
service httpd restart

erm3nda

I love sed from the same day i discover it.

Anyway, you may explain a little about edit a plain text instead ask users to run commands that doesnt undertand :P
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.