Ahh, the Docs don't tell you that.

They are a little weard wehen it comes to that ....

----- Original Message ----- 
From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
To: "Mark Tehara" <[EMAIL PROTECTED]>
Cc: "PHP" <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>                        +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
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to