Alex Rivera | Logout

PHP does not display error messages

Asked 2011-04-15T18:25:24.223
40

I installed XAMPP 1.7.4 (with PHP 5.3.5), the problem is PHP does not display any error messages. E.g. if I connect to MYSQL with mysql_connect() without parameters, PHP will not complain about the required fields.

Why is this?

How can I configure PHP to display errors?

Edit
Report

1 Answer

11

May be the display error is off

add in .htaccess file of your application.

php_value display_errors on

OR

use this at the top of your php script

ini_set('display_errors',"1");
answered 2011-04-15T18:26:43.523

Your Answer