debuggin' picture code

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
User avatar
9902468
Forum Commoner
Posts: 89
Joined: Thu Jun 06, 2002 6:39 am
Location: Europe

debuggin' picture code

Post by 9902468 »

How do you do it? This is plain hell! If something is wrong in the code that creates images, the image is just not shown. And now that the code works it doesn't do everything it is supposed, ie every text that I want to print to the picture shows, but rectangles that I output sometimes are visible and sometimes not... I have few ifs whiles and fors in code, but how I should examine what loops are entered and what not? etc. etc...

thanks

-9902468
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Try printing out some normal text in each loop like:

Loop 1 : echo "Loop1";
Loop 2 : echo "Loop2";
.
.
.
.

That's how I normaly do it.
Post Reply