debugging php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

debugging php

Post 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
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

Post 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
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

Re: debugging php

Post 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 ?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: debugging php

Post 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.
Post Reply