Re: [Newman] Passing an image through a php file.

From: Date: Fri, 20 Jun 2003 19:07:34 +0000
Subject: Re: [Newman] Passing an image through a php file.
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-152345@lists.php.net to get a copy of this message
Ahh, the Docs don't tell you that. They are a little weard wehen it comes to that .... ----- Original Message ----- From: "Lars Torben Wilson" <torben@php.net> To: "Mark Tehara" <me@philipsdomain.com> Cc: "PHP" <php-general@lists.php.net> Sent: Friday, June 20, 2003 10:53 PM Subject: Re: [PHP] [Newman] Passing an image through a php file. > On Thu, 2003-06-19 at 20:19, Mark Tehara wrote: > > <?php > > > > $myimage="..//..//site//images//2.jpg"; > > > > header("Content-type: image/jpeg"); > > fopen ("$myimage", "r"); > > readfile("$myimage") ; > > fclose("$myimage"); > > > > ?> > > > > This seemed to do the trick for me. Thank you. > > > > / Mark > > Even better, you don't even need the fopen() and fclose() calls; > readfile() is doing this with just the filename. > > http://www.php.net/readfile > > > -- > Torben Wilson <torben@php.net> +1.604.709.0506 > http://www.thebuttlesschaps.com > http://www.inflatableeye.com > http://www.hybrid17.com > http://www.themainonmain.com > -----==== Boycott Starbucks! http://www.haidabuckscafe.com > ====----- > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#152345) next »