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: ?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

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

2003-06-20 Thread Mark Tehara
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

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.

[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) ? header(Content-type: image/jpeg); ? would make the computer think its a image file. 2. load the image using fopen (d://crushme//images//1.jpg, r); ?php header(Content-type:

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

2003-06-19 Thread Awlad Hussain
try this: ?php header(Content-type: image/jpeg); fopen (d:/crushme/images/1.jpg, r); ? - 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

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

2003-06-19 Thread CPT John W. Holmes
try this: ?php 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

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

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