tags:

views:

629

answers:

3

can i enable short open tag with programming without touching any configuration file

A: 

Nope, you can't you will have to go through config file. To add more, using short tags poses security issues too, avoid using them.

Sarfraz
A: 

I think the short_open_tag can't be modified with ini_set().

Alexandru Mos
+1  A: 

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

Erik Giberti