Control Web Panel

WebPanel => PHP => Topic started by: Administrator on December 15, 2013, 12:12:51 AM

Title: PHP short tags do not work?
Post by: Administrator on December 15, 2013, 12:12:51 AM
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:

Code: [Select]
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:
Code: [Select]
service httpd restart
Title: Re: PHP short tags do not work?
Post by: erm3nda on April 09, 2015, 04:39:45 AM
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