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

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 12:07, Mark Tehara wrote: > Ahh, the Docs don't tell you that. > > They are a little weard wehen it comes to that How so? int readfile ( string filename [, bool use_include_path [, resource context]]) It does say 'filename', not 'resource'. Seems pretty unequivocal. H

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

2003-06-20 Thread Mark Tehara
ay, 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: > > > > > $myimage="..//..//site//images//2.jpg"; > > > > header("Content-type: image/jpeg"); > >

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

2003-06-20 Thread Lars Torben Wilson
On Thu, 2003-06-19 at 20:19, Mark Tehara wrote: > > $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

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

2003-06-19 Thread Mark Tehara
ECTED]> Sent: Friday, June 20, 2003 1:14 AM Subject: Re: [PHP] [Newman] Passing an image through a php file. > > try this: > > > > > header("Content-type: image/jpeg"); > > fopen ("d:/crushme/images/1.jpg", "r"); > > Just my opinion,

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

2003-06-19 Thread CPT John W. Holmes
> try this: > > header("Content-type: image/jpeg"); > fopen ("d:/crushme/images/1.jpg", "r"); Just my opinion, but maybe you should try reading the file and echoing the data instead of just opening it. :) ---John Holmes... > I would like to pass an image throught > http://server/newman/ImageTE

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

2003-06-19 Thread Awlad Hussain
try this: - Original Message - From: "Mark Tehara" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 10:58 AM Subject: [PHP] [Newman] Passing an image through a php file. I would like to pass an image throught http://server/

[PHP] [Newman] Passing an image through a php file.

2003-06-19 Thread Mark Tehara
I would like to pass an image throught http://server/newman/ImageTEST/image.php 1. I need the headers (Assuming) would make the computer think its a image file. 2. load the image using fopen ("d://crushme//images//1.jpg", "r"); The image "http://server/newman/ImageTEST/image.php"; cannot