Page 1 of 1

Debug imagefile

Posted: Fri Mar 18, 2005 7:09 pm
by Shendemiar
Images to show in html needs to be linked, so, and php generated image must a separate file.

IF i get errors in this file, how am i able to see them? I only get a empty image placeholder.

Posted: Fri Mar 18, 2005 7:16 pm
by John Cartwright
What? 8O

Please reword

Posted: Fri Mar 18, 2005 7:29 pm
by evilmonkey
I think I see what you're asking.

You're getting GD to generate you an image file. The image file will have a .php extension. And that you put the location of the .php script into the <img> tag. If so, you can't really see the errors, except for in a debugger (such as Zend studio). If you type in the URL of the php script into the adress bar, it'll give you one of two things: a parse error (in which case you know the line # and can fix it), or "this image cannot be displayed because it contains errors". In a case of the latter, the Zend debugger is the only way to go to make sure you're using the right variables, the right commands, etc.

Good luck!

Posted: Fri Mar 18, 2005 7:35 pm
by Shendemiar
evilmonkey wrote:If you type in the URL of the php script into the adress bar, it'll give you one of two things: a parse error (in which case you know the line # and can fix it), or "this image cannot be displayed because it contains errors". In a case of the latter, the Zend debugger is the only way to go to make sure you're using the right variables, the right commands, etc.

Good luck!
Thanks!