Change register_globals php.ini variable -- Oct 17 2009, 5:19 PM
When php.ini register_globals is set to On, you will see a warning message in admin statistics page. The script will work under these conditions, but we advice you to set it Off for security reasons.
To set the value to Off try the following:
1. Search if you can change it from your control panel (from a section with a name referring to php.ini variables).
2. If your server runs PHP as CGI ( * ), then you can set it in a php.ini file. Place the following line in a php.ini file in the root of your installation:
register_globals = Off
If the file does not exist, simply create it with any text editor.
After you make this change, check again if the value has changed.
3. If your server runs PHP as an Apache module ( * ), then you can set it using an .htaccess file with the following line:
php_flag register_globals off
If the file .htaccess does not exist, create it with a text editor.
4. Ask hosting support for help.
* To determine whether PHP runs on your server as CGI or Apache module you must open the PHP info page by clicking on the link next to "View PHP Info" from your administrator statistics page. Near to the top of the page look for "Server API". If it runs as CGI, then you will see there CGI, if it runs as Apache module you will see "Apache X.X Handler".
To set the value to Off try the following:
1. Search if you can change it from your control panel (from a section with a name referring to php.ini variables).
2. If your server runs PHP as CGI ( * ), then you can set it in a php.ini file. Place the following line in a php.ini file in the root of your installation:
register_globals = Off
If the file does not exist, simply create it with any text editor.
After you make this change, check again if the value has changed.
3. If your server runs PHP as an Apache module ( * ), then you can set it using an .htaccess file with the following line:
php_flag register_globals off
If the file .htaccess does not exist, create it with a text editor.
4. Ask hosting support for help.
* To determine whether PHP runs on your server as CGI or Apache module you must open the PHP info page by clicking on the link next to "View PHP Info" from your administrator statistics page. Near to the top of the page look for "Server API". If it runs as CGI, then you will see there CGI, if it runs as Apache module you will see "Apache X.X Handler".
