View Single Post
  #5 (permalink)  
Old February 13th, 2010, 02:22 AM
BozHogan BozHogan is offline
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2010
Location: Wolfeboro, New Hampshire / Boston
Posts: 25
Thanks: 1
Thanked 4 Times in 4 Posts

And BTW, don't put any debugging statements in the image_effect.php file, like echo $font, or anything else that causes output. Because this file is called as the src attribute of an image element, it can only generate an image, not text output. When I tried to use echo to see what my variables and arrays were holding, the check_image program tried to put that where it expected an image. The result was no image, and annoyingly, no output or even an error message in the php-error log.

I think using an image generating program as the src attribute is pretty cool. But if anyone knows a way to get error and debugging info out of it, I'd love to here it. There must be a way to use stderr or stdout to do this on Linux, but on Windows? Any ideas?

Reply With Quote