Ok I can't figure this out.
I'm following the Zend tutorial on making a counter and it works upto the output stage. I'm using jpeg instead of gif and my phpinfo shows
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Support enabled
I know ImageJpeg works as I used it in another script, but that is where it seems to hang. I've been debugging with echo commands and I see it get a resource id when createImagefromJpeg is issued, but when the script gets to the point where it says
function send($img) {
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Header("Content-type: image/Jpeg");
ImageJpeg($img);
ImageDestroy($img);
}
It hangs and nothing happens. I know I'm getting this far as I can check with an echo here and it prints (I of course get header error as expected) So it seems it's hanging on the ImageJpeg command Any ideas what I'm doing wrong?