|
|
Home FAQs |
PHP: Help! I can't turn PHP register_globals OFF!
| Author(s): | Rliskey | Experience level: | Beginner | Contributors: | Joomla! version: | ![]() | Date added: | Tuesday, 30 November 1999 | Date last changed: | Friday, 06 July 2007 |
Overview
If your server is configured to allow it, you can adjust PHP's register_globals setting by adding local php.ini files to your site's directory. The local php.ini files will override the server's default php.ini settings.
The Bad News
- Local php.ini files do not effect sub-directories the way .htaccess files do. You must add a php.ini file to each sub-directory in which files are served directly to web browsers.
- Some third party extensions and javascript enabled scripts may also require a copy of your local php.ini in their directory.
The Good News
- For most Joomla! sites, there are only two directories to deal with. One is the main /public_html/ directory in which the site's index.php file is located. The other is the /administrator/ directory.
- In most cases, when Joomla! reports that register_globals is still on, it's because the local php.ini file was not copied into the /administrator/ directory.
- Note that there is no need to copy the local php.ini file into every directory of your site.
Last Updated Friday, 06 July 2007
| < Prev | Next > |
|---|



FAQs 