Link to home
Create AccountLog in
Avatar of huangs3
huangs3Flag for Canada

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!
ASKER CERTIFIED SOLUTION
Avatar of GarbsTheTurtle
GarbsTheTurtle
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of huangs3

ASKER

Thank you DrNikon224.
I didn't get trouble with it, but just want to make sure what the statement is doing.
Thank you!