Author Topic: PHP short tags do not work?  (Read 7339 times)

0 Members and 1 Guest are viewing this topic.

PHP short tags do not work?
« 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
« Last Edit: December 15, 2013, 12:15:01 AM by Administrator »
AntiDDoS Protection (web + mail)

Join our Development Team and get paid !

Services Monitoring & RBL Monitoring

Do you need Fast and FREE Support included for your CWP linux server?
Installation Instructions
Get Fast Support Here

Re: PHP short tags do not work?
« Reply #1 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
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.