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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php