note 49835 deleted from ref.image by betz

From: Date: Sat, 04 Jun 2005 11:24:38 +0000
Subject: note 49835 deleted from ref.image by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-89910@lists.php.net to get a copy of this message
Note Submitter: twice 'kp0t' at google's mail dat com ---- If you're looking for a way to JUST SEND OUT AN IMAGE FILE (existing in your filesystem), you don't need GD (or any other extension) at all. [GD may wrongly appear to beginners as the only or the preferred option. Well, this section DID confuse me.] Correct me if I'm wrong, but something like the following will do perfectly well in this case (tested with PHP5): <?php header("Content-type: image/jpeg"); include("photo.jpg"); ?> That's looks like the most efficient way to get any (binary) file sent to the client's browser. Just don't forget to set the right header.

« previous php.notes (#89910) next »