IMG generation

From: Date: Wed, 11 Oct 2000 19:14:57 +0000
Subject: IMG generation
Groups: php.general 
Request: Send a blank email to php-general+get-19674@lists.php.net to get a copy of this message
I have an html file that looks like this: <html> <img src="/php/displayimage.php"> </html> When I browse this file, I get a "premature end of script headers error". If I execute the file from the command line and capture the output, I get the following (I've truncated some of the later lines): X-Powered-By: PHP/4.0.2 Content-type: image/jpeg ÿØÿà^@^PJFIF^@^A^A^@^@^A^@^A^@^@ÿþ^@;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 30 ÿÛ^@C^@^[^R^T^W^T^Q^[^W^V^W^^^\^[ (B+(%%(Q:=0B`Ued_U][jx~^Y~^Ajq~^Ps[]~^Eµ~^F~^P~^^£«­ ^KÿÄ^@µ^P^@^B^A^C^C^B^D^C^E^E^D^D^@^@^A}^A^B^C^@^D^Q^E^R!1A^F^SQa^G"q^T2~^A~ ^Q¡)* This >>looks<< like image data. So why is the browser rejecting it? - Mark mark@REMOVETHIS STUFF@arcabama.com

« previous php.general (#19674) next »