0

Hi

Whenever I have error in PHP script, it doesn't return errors, it only returns blank page.
So, when everything is OK, script works perfectly, but when I have error, it's only blank page in browser.

I use Debian 6.0.2

any help is appreciated :D

4
Contributors
7
Replies
8
Views
6 Years
Discussion Span
Last Post by coolest_987
0

how about a sample page. this is why you should run your logic outside of the scope of your page, but anyway, need a sample page of your code to see what you are talking about. is there really an error, does the page stop loading because of the error? please show code if you want help.

0

how about a sample page. this is why you should run your logic outside of the scope of your page, but anyway, need a sample page of your code to see what you are talking about. is there really an error, does the page stop loading because of the error? please show code if you want help.

bro this is the code

<?php

echo "something"

?>

So I didn't put the semicolon, and there is no error like "Syntacs error, expected ; " or something.

Just blank page,
like I didn't run anything.

really weird

Edited by zack654: n/a

0

at the top of your page tyr this:

<?php
// top of your script.
ini_set('display_errors',1); 
error_reporting(E_ALL);

 echo $something
?>
1

Check whether error_reporting is On from your php.ini file by simply printing phpinfo(). If not, then set it to On.

0

Check whether error_reporting is On from your php.ini file by simply printing phpinfo(). If not, then set it to On.

works :icon_cheesygrin:
thanks a lot

just I can't believe this was set to off,
why for fucks sake

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.