OS: Fedora Core 17 (x86_64)
Browser: Firefox 18.0
PHP version: 5.4.11
Apache version: 2.2.22
I would like to know whether it is possible to print different kinds of PHP errors (at least parsing errors) in the browser screen. for example
<?php myVariable = 12 ?>This should give a syntax/parse error because there is not $ before the variable name nor the ";" at the end of the statement.
I modified the file /etc/php.ini by removing comments for the two following options:
Then I restarted the apache service. . .
display_errors=On
; Default Value: On
; Development Value: On
; Production Value: Off
; display_startup_errors
; Default Value: Off
; Development Value: On
; Production Value: Off
error_reporting=E_ALL
; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
. . .
# service httpd restart
Yet, I don't see any change, and whenever there is an error, I just have a blank page in the browser.
Any idea? What are the further actions to be taken in order to print errors and warnings on the screen? (Of course, I want to do this only for development/training purpose, here we are not talking about a production environment)
Thanks in advance,
Regards,
Dariyoosh












