Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP script won't display errors, just a blank page [duplicate]

Possible Duplicate:
How to get useful error messages in PHP?

Simple errors in my scripts don't show on the screen, only in error.log. I can't find a way to display them on screen. What else can be done here?

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
  knaller!
?>

Using PHP Version 5.3.14-1~dotdeb.0

like image 995
MBaas Avatar asked Mar 08 '26 09:03

MBaas


1 Answers

Ok, I had used Search before but did not find the right answer, now it showed up as "Related"...

Here's the story:

  • Glavic, none of these suggestions changed anything.
  • the related article "cannot get PHP errors to display" had the solution to include the file in doubt in another file where error_reporting was set. And with marios comment I also understood why this helped.

That was quick - thanks guys! :)

like image 110
MBaas Avatar answered Mar 09 '26 23:03

MBaas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!