Can I enable PHP short tags without touching any configuration files?
The <= tag is called short open tag in PHP.
If you have access to an .htaccess but not the php.ini, simply add this to .htaccess in root of the php app you are planning on running:
php_value short_open_tag 1
You should be able to change it in your .htaccess file if it wasn't locked down
<IfModule mod_php5.c> php_value short_open_tag 1 </IfModule>
See http://php.net/manual/en/configuration.changes.php for more details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With