Re: Debuggin PHP

From: Date: Wed, 26 Apr 2006 16:44:17 +0000
Subject: Re: Debuggin PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234827@lists.php.net to get a copy of this message
hicham 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 ?
the hard way: install and use Xdebug. easy way 1: buy a copy of Zend Studio, again install on the server part on your server (which is automated if your development machine is your local machine) - much simpler to setup than Xdebug and very easy to use. easy way 2: use lots of echo()/var_dump()/print_r() in your code to figure out where it's breaking. NB: turn on error_reporting to full: ini_set('error_reporting', E_ALL | E_STRICT); NB: turn on diplay_errors (or find your php or apache log, it depends, and learn how to 'tail' it to what what if any errors are occuring) ini_set('diplay_errors', 1);
Thanks hicham


« previous php.general (#234827) next »