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
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
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.
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:
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
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
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
7 matches
Mail list logo