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

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.

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

at the top of your page tyr this:

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

 echo $something
?>

:icon_cry: no use

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

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

In php ini set display_errors = on

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.