huangs3
asked on
ini_set('display_errors', E_ALL); statement in PHP
Following is the first statement in the index.php file of a website:
ini_set('display_errors', E_ALL);
After checking the manual in http://ca.php.net/ini_set, I want to make sure what it does. Following is the description of ini_set()
************************** ********** ********** ********** ********** ********** *******
string ini_set ( string $varname, string $newvalue )
Sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.
************************** ********** ********** ********** ********** ********** ********
I'm wondering, is 'display_errors' a special variable name in PHP (which means we cannot use it)?
Thank you!
ini_set('display_errors', E_ALL);
After checking the manual in http://ca.php.net/ini_set, I want to make sure what it does. Following is the description of ini_set()
**************************
string ini_set ( string $varname, string $newvalue )
Sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.
**************************
I'm wondering, is 'display_errors' a special variable name in PHP (which means we cannot use it)?
Thank you!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I didn't get trouble with it, but just want to make sure what the statement is doing.
Thank you!