Hi,
I've some problems to debug my php code because I can't see the output of my "echo" function when I add it into existing third parties code.
When I trigger the function the page just stops to load.
If I remove "echo" function, everything works correctly.
thanks
debugging php
Moderator: General Moderators
debugging php
Last edited by aneuryzma on Sun Aug 23, 2009 9:06 am, edited 1 time in total.
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: debugging php
You could always try using the built-in debuggers within one or other of the PHP IDEs such as Zend Studio, PHP Designer, PHPEd, etc
Re: debugging php
hi,
is there any IDE for free ?
How does it work ? My code is online, not on my local machine. Can I use an IDE even if my code is on the server ?
is there any IDE for free ?
How does it work ? My code is online, not on my local machine. Can I use an IDE even if my code is on the server ?
Re: debugging php
When PHP encounters a syntax error, it just doesn't send any output to the browser, so usually when you get a blank page it's because you have a syntax error in your PHP statement. In your case, if the only thing that's different between it working and not working, is that you added one line of code, it should be very simple to find the error. Look for a missing semicolon {;} at the end of your PHP statement, or unbalanced quotation marks.aneuryzma wrote:When I trigger the function the page just stops to load.
If I remove "echo" function, everything works correctly.