Using a php.ini File
This will show you how to customize the php.ini configuration file. This will control some settings of the PHP interpreter. This file enables you to such as global variables, register_globals.
How a php.ini File is Read
When PHP starts, it follows and behaves according to the specified settings of the available php.ini file. The server will look for this file in these locations in this order:
1. Within the directory that the page was loaded
2. The root directory (public_html or www folder)
3. The server’s default php.ini
Your server’s php.ini file will be used if you dont have a custom one created. You can find the default one in /usr/local/lib/php/php.ini. Check out these settings in the file as it may help you find the solution to problems you may be having on your server.
register_globals = On
The register_globals setting controls how users access your forms, server, and other variables. This variable is set to ‘off’. This means that you will have to use special arrays in order to access these variables.
NOTE: The reason for this is because when register_globals is set to On, your PHP scripts will become more vulnerable to attacks.
To retrieve the value of [input name="formVar"] from a form submitted with the POST method:
When register_globals = On
$theVariable = $formVar;
When register_globals = Off
$theVariable = $_POST['formVar'];