Re: Debuggin PHP
| From: | Eric Butera | Date: | Wed, 26 Apr 2006 18:35:28 +0000 |
| Subject: | Re: Debuggin PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234835@lists.php.net to get a copy of this message | ||
On 4/26/06, hicham <hichamlinux@gmail.com> wrote:
>
> Hello
> I'm a newbie in php world , and I'm trying to get a php 4 script work
> on an php5 version
> how do i debug php ? I get a blank page and nothing tells me what 's wrong
> ?
>
> Thanks
> hicham
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
(Assuming you're on *nix)
One thing I always do when I'm developing is to locate the error log that
PHP writes to. You can find it by looking at error_log in php.ini or find
where Apache writes errors to. Then I just tail -f that so that I can see
any errors including parse errors that just give you that no-ouput white
screen. As others have mentioned always keep error_reporting to E_ALL.