note 18091 deleted from function.fopen by sander

From: Date: Sun, 07 Apr 2002 11:16:06 +0000
Subject: note 18091 deleted from function.fopen by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28834@lists.php.net to get a copy of this message
How to control a displaying JPEG files (send binary files to STDOUT)? <?PHP $filename=$file; // string constant contain complete path to img file $fp=fopen($filename, "rb"); header( "Content-type: image/jpeg\nContent-Disposition: inline; filename=\"mypic.jpg\"\nContent-length: ".(string)(filesize($filename)) ); fpassthru($fp); fflush(); ?>

« previous php.notes (#28834) next »