I have apache installed on my computer as well as php and am editing in Eclipse. I had gone into php.ini and changed error error reporting to on as seen here:
Code: Select all
; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
; Off = Do not display any errors
; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
; On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://php.net/display-errors
display_errors = On
However, I had not restarted Apache. So I restarted it and tried the code with the following line:
Code: Select all
ini_set('error_reporting', E_ALL);
No Joy.
So I reinserted the code you suggested earlier :
Code: Select all
ini_set('display_errors', 1);
error_reporting(E_ALL);
and it reported the errors correctly.
Are there any other lines in php.ini that need to be enabled or changed? Can you suggest a good resource for reference? I would really like to better understand how these files work . I didn't find the answers in the php info files or in the explanations within the php.ini file.
Again, Thanks for your assistance.