June 29, 2006

Enable/Disable register_globals

by @ 7:26 pm. Filed under Server Security

The most common setting that clients will want to change are the “register_globals” settings. If you want to enable register_globals, you will need to create a .htaccess file in your site’s main directory (or the main directory of your site that contains PHP hosting scripts). Your .htaccess file should contain the following line:

php_flag register_globals on

If you want to disable register_globals then your .htaccess file should contain the following line:

php_flag register_globals off

One Response to “Enable/Disable register_globals”

  1. Stacy Says:

    First check whether suexec enabled or disabled on server if it is enabled then it gives give internal server error when you add the ” php_flag register_globals on” or “php_flag register_globals off” line in .htaccess file. For such condition if you want to enable register_globals, you will need to create php.ini file in your site’s main directory and add following line in php.ini file:

    register_globals = on

    If you want to disable register_globals then add following line in php.ini file:

    register_globals = off

Leave a Reply

You must be logged in to post a comment.

RESELLER HOSTING | DEDICATED SERVER | PREMIUM HOSTING | VPS HOSTING

Micfo Hosting

Micfo International LLC Leading the hosting Industry with Cheap and Affordable Linux Web Hosting Packages.

internal links:

categories:

archives:

Services:

Micfo Hosting

Micfo, delivering the best cpanel web hosting with maximum reliability is our exclusive focus.
Micfo International LLC

search blog:

TOP 10 POSTS:

Pages:

General Links:

Syndicate

other:

35 queries. 0.100 seconds