Reputation: 121
i am using nginx+php-fpm. I am unable to set up error displaying via php-file like this:
error_reporting(0);
or ini_set('error_reporting', E_ALL);
Working solution is via nginx.conf:
fastcgi_param PHP_VALUE "upload_max_filesize = 1000M \n post_max_size=1010M \n display_errors = On";
But I need via php-script :-). Is it possible? Thanks.
Upvotes: 0
Views: 3241
Reputation: 42799
try
error_reporting(E_ALL);
ini_set('display_errors','on');
PS: 0
isn't a valid value for error reporting, there's predefined constants for that
Upvotes: 1