Erfan
Erfan

Reputation: 31

Displaying Errors in PHP

I have php v5.3.2 on ubuntu 10.04. i changed the reporting options in /etc/php5/apache2/php.ini to these:

display_errors = 1
error_reporting = E_ALL

I also added these lines to the top of my php files and restarted apache but im still not able to see the errors/warnings,

ini_set('display_errors',1);
error_reporting(E_ALL);

Is there anything else in the way that prevents the errors from showing up?

Edit 1: According to phpinfo(), both display_errors and display_startup_errors are on. The value of error_reporting is also 30719 which i'm not quite sure what it means.

Upvotes: 2

Views: 319

Answers (1)

optimistAk
optimistAk

Reputation: 359

Could you try error_reporting(-1); ?

Upvotes: 1

Related Questions