|
Posted by Rik on 07/30/07 18:44
On Mon, 30 Jul 2007 20:20:17 +0200, GA <fang27@excite.com> wrote:
>
> I am having a script problem.
>
> When I turn on all reporting, the only thing I get is a few
> insignificant 'notices', but nothing else.n I should mention now that
> the script was working just fine at one point, and I am not sure what
> happened to make it stop. The Notices in php error reporting existed
> then as well, so I know it has nothing to do with them.
>
> Other than that, my script just stops. I can't find an error in it!
Stopping could be script error instead of a PHP one... I've had codes
die/end prematurely due to an error in setup. PHP won't complain :).
> Anyone have suggestions as to how I can proceed to dig out the real
> issue?
use this code:
<?php
echo 'Untill here it works:'.__FILE__.':'__LINE__."\n";
flush();
?>
Place it at major points in your code (if you get any output obviously
start just after the last verifiable point), follow the flow and see where
it dies, and then zone in on the fatal error placing these closer and
closer together. Or if you;re afraid of polluting your code to much just
follow the flow placing it further and further untill it doesn't show
anymore, and check the piece just before that.
If that all sounds to much work and you have control over
extentions:http://xdebug.org/, and you can see what the last function was
before the end.
--
Rik Wasmus
Navigation:
[Reply to this message]
|