|
Posted by ZeldorBlat on 10/10/07 15:04
On Oct 10, 10:28 am, bill <nob...@spamcop.net> wrote:
> I just started a new project on a new virtual server.
> If I write a small script, it executes fine.
>
> If there is an error in the small script, I get no output at all,
> but the browser shows "done."
>
> here is the small script:
> <?php
> session_start();
> $debug=1;
> if ($debug) {
> error_reporting(E_ALL);
> echo "<br />SESSION:<br />";
> print_r($_SESSION);
> echo "<br />POST:<br />";
> print_r($_POST);
> echo "<br />";
> }
> echo " duh";
> echo "double duh";
> ?>
>
> If I remove the semicolon after echo " duh"; to generate a syntax
> error, I get no output at all. no error is reported in the browser.
>
> Any ideas ?
>
> bill
You need to enable error reporting and/or display errors in php.ini.
If it's turned off there and there's a syntax error your call to
error_reporting() will never happen since the code cannot be compiled,
much less executed.
Navigation:
[Reply to this message]
|