New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

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.