Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- a debug technique enquiry
June 3, 2006, 1:15 pm
rate this thread
when i add
in the last line of 'def.php',
the codes in abc.php were once executed. now after series of changes
(including setting php.ini), i don't know which one makes a bug.
here is the starting lines of abc.php:
// indicate test version or public version.
// 0: prompt 1: test 2: Web
$type = 2;
print "<h2>Welcome to this page</h2>\n";
the print is to see if it works or not but it even doesn't print out.
permission of abc.php hasn't been changed and every time i run def.php, the
timestamp of abc.php shows an update accordingly.
What can i do in abc.php to debug?
thanks a lot.
Re: a debug technique enquiry
First of all: You have display errors on, and error_reporting set to E_ALL?
Second, it's probably def.php that needs to be debugged. Try a simple
<?php print("untill here it works"); ?>
And move it up in your def.php untill it works, the error is somewhere
Cutting out large pieces of code in a copied version untill you can
reproduce the problem with a minimal amount of code is always very