Disable or Enable register global from .htaccess

From wiki.morphey.org

Jump to: navigation, search

At times, the file server where hosted we are you/he/she is planned with on register_global or to off and we cannot modify such directive of php from the php.ini for obvious motives.

Then we can plan him to on/off through an entry in the file. htaccess in this way.


For on:

 
php_flag register_globals on
 


For off:

 
php_flag register_globals off
 
Personal tools