note 41424 added to function.header

From: Date: Fri, 09 Apr 2004 11:52:44 +0000
Subject: note 41424 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-67876@lists.php.net to get a copy of this message
i have problem when i use this function Header('Content-Type: image/jpg') i m using internet explorer 6 sp1 and i think my browser is not supporting becuse the output is like this ÿØÿàJFIFÿþ ÿÛC    $.' ",#(7),01444'9=82<.342ÿÛC  2!! anyone can solve my problem plz the code of my php file is <?php Header('Content-Type: image/jpg'); $pic=ImageCreate(600,600); $col1=ImageColorAllocate($pic,200,200,200); $col2=ImageColorAllocate($pic,0,0,255); ImageFilledRectangle($pic,1,1,100,100,$col2); ImageJPEG($pic); ImageDestroy($pic); ?> ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41424 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41424&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41424&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67876) next »