On Wed, April 26, 2006 11:30 am, hicham wrote:
>  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 ?

Check "View Source" in your browser to see if it's really blank.

Make sure PHP is installed and functioning with <?php phpinfo();?>

Check your php.ini settings and see if errors are displayed, logged,
or discarded, and what your error_reporting is set to.

Also check the script itself to see if it resets error_reporting --
which,  if it does, is a clear indicator that the author of the script
didn't know what they were doing and you shouldn't use their script
anyway.

You can also use Firefox and its extension to see HTTP Headers to see
what headers, if any, come out of the server.

You can also run PHP from the command line to see what the script
outputs in that environment, which is sometimes useful, and sometimes
too different from web environment to be useful.  Just depends.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to