Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCalvin Secrest
24,815 PointsIs there any particular reason why my PHP page is getting white blank screen? I mean the PHP Error Handling is turn...
Is there any particular reason why my PHP page is getting white blank screen? I mean the PHP Error Handling is turn on and I've even tested the code, still haven't encounter any problems. One way I tried to isolate the problem is to comment out large chunks of my code. I'd started at the top, and comment out all but the first couple lines, then echo () a test message right above the comment. Yet it echoes fine, does that mean then the problem is below? Should I continue to move the start of the comment and the test echo downwards as I work through my document, until I find the problem? Any advice would help, thanks!
1 Answer
Luke Towers
18,572 PointsUsually if you aren't getting any errors with error handling turned on it would indicate that it is possibly a parsing error, so you can try to use online PHP code checking tools to detect it for you.
If that doesn't help, then yes, commenting out blocks of code and using echo statements to help narrow down where the bug could be is a perfectly valid (albeit slow) method of debugging your code.