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

From: Date: Fri, 20 Jun 2003 10:53:11 +0000
Subject: Re: [Newman] Passing an image through a php file.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-152294@lists.php.net to get a copy of this message
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 ====-----

« previous php.general (#152294) next »