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

0 Members and 1 Guest are viewing this topic.

Offline
*
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)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
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.