note 33982 deleted from function.header by sniper

From: Date: Sun, 07 Sep 2003 21:48:00 +0000
Subject: note 33982 deleted from function.header by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55658@lists.php.net to get a copy of this message
Note Submitter: ironmind@sunpoint.net ---- This works just fine with all browsers i have tested. I was struggling with this problem for a while. I looked up how apache server does imagehandling with lynx. *************************************************** lynx -mime_header http://127.0.0.1/images/image.jpg *************************************************** This is my version of header-sending imitating apache. $length = strlen ( imagejpeg(LoadJpeg($imagepath),"",20)); header('Accept-Ranges: bytes'); header('Content-Length: '.$length); header('Connection: close'); header('Content-Type: image/jpeg'); header('Content-Disposition: inline; filename=file.jpg'); echo "\n"; imagejpeg(LoadJpeg($imagepath),"",20); exit;

« previous php.notes (#55658) next »