Register_Globals in .htaccess

Use .htaccess to turn on or off PHP Register Globals without editing your php.ini.This is a great way to enable older php scripts to run without making your whole site insecure.

 

Simply create a .htaccess file in the base directory of your web content or in the directory of the php script you wish to allow or disallow pHP Registers Globals.

This is a great way to debug certain scripts without effecting the whole site.

 

php_flag register_globals on

OR

php_flag register_globals off

  • 244 Users Found This Useful
Was this answer helpful?

Related Articles

..htaccess guidance

  .htaccess guidance .htaccess is a special Apache file that tells your website how to...

Linux Sites preview Offline

Linux Site's Preview Offline   http://IP_address/~UserName OR http://ServerName/~userName...

How to scan your website's data from CPanel?

Welcome the comprehensive step-by-step guide by our web hosting company on how to scan your...

How Can I Download a Backup of Full cPanel Account Using FTP?

If you want to download a backup of your website using FTP, please follow these easy steps below:...

How to create an addon domain?

An add-on domain is a fully functional domain and it can be created by using your Cpanel. Add-on...