Since the link goes directly to the picture, how do I apply the header
first? Should I apply it in the html page the link is on?
:)
Thanks!
-Mike
Hello Mike,
Tuesday, January 13, 2004, 5:31:47 PM, you wrote:
MR That's what I kind of thought, but this is a case where the browser is
: [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 5:03 PM
Subject: RE: Re[4]: [PHP] Re: jpeg Uploader issue
Since the link goes directly to the picture, how do I apply the header
first? Should I apply it in the html page the link is on?
--
PHP General Mailing List (http://www.php.net
From: Toby Irmer [EMAIL PROTECTED]
file: show.php
?
header(Content-type: image/jpeg);
readfile(/path/to/file/.$_GET[filename]);
?
in your files:
img src=show.php?filename=myfile.jpg ...
or something like that ;)
Are you trying to get him to compromise his server? I'm sure that's
]
Sent: Thursday, January 15, 2004 5:15 PM
Subject: Re: Re[4]: [PHP] Re: jpeg Uploader issue
From: Toby Irmer [EMAIL PROTECTED]
file: show.php
?
header(Content-type: image/jpeg);
readfile(/path/to/file/.$_GET[filename]);
?
in your files:
img src=show.php?filename=myfile.jpg
From: Toby Irmer [EMAIL PROTECTED]
that was explaining the prinicple.
of course you wouldn't do it like this, but pass an id to identify. you
could also send an encryption key...
Ok. I'm sure the original poster is grateful. Hopefully, if anyone actually
searches those things called the
Sinc the link goes directly to the picture, how do I apply the header first?
Should I apply it in the html page the link is on?
:)
Thanks!
-Mike
Hello Mike,
Tuesday, January 13, 2004, 5:31:47 PM, you wrote:
MR That's what I kind of thought, but this is a case where the browser is
MR
6 matches
Mail list logo