Page 1 of 1

debugging php

Posted: Sun Aug 23, 2009 8:58 am
by aneuryzma
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

Re: debugging php

Posted: Sun Aug 23, 2009 9:00 am
by Mark Baker
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

Posted: Sun Aug 23, 2009 9:09 am
by aneuryzma
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 ?

Re: debugging php

Posted: Sun Aug 23, 2009 11:36 am
by califdon
aneuryzma wrote:When I trigger the function the page just stops to load.

If I remove "echo" function, everything works correctly.
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.