PHP does not return errors at all
Posted
by ErJab
on Stack Overflow
See other posts from Stack Overflow
or by ErJab
Published on 2010-03-16T15:58:06Z
Indexed on
2010/03/16
16:01 UTC
Read the original article
Hit count: 352
I am running PHP and nginx and I use a production version of php.ini. So the variable display_error is set to Off and there is a good reason I want it this way. But for certain files I need to enable error reporting. I used ini_set to turn on error reporting. But a simple code snippet like:
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
echo "hi"errorrrrr
?>
does not trace the error. It simply returns a HTTP 500 Internal Server Error message. What should I do to enable error reporting?
© Stack Overflow or respective owner