Why we should not enable PHP register_globals Print

  • 0

register_globals is a PHP setting that controls availability of variables that have been submitted by a user to a PHP script (such as data posted from a form, URL-encoded data, or data from cookies). In earlier releases of PHP, register_globals was set to "on", which made for easier, but less secure coding. In PHP 6, register_globals has been totally deprecated of its use.

 Thus, due to security measures, nocser has turned off register_globals "off" on all of our hosting servers. If your PHP scripts relies heavily on register_globals, you may turn it on only for your usage via .htaccess. Insert this one line into your .htaccess located inside your PHP script "php_flag register_globals on". We highly recommend you to not use register_globals on your PHP scripts.

 

 


Was this answer helpful?

« Back