Re: Streaming a jpg
| From: | Don Read | Date: | Sun, 12 Aug 2001 15:35:54 +0000 |
| Subject: | Re: Streaming a jpg | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62310@lists.php.net to get a copy of this message | ||
On 12-Aug-2001 Todd Cary wrote:
> Don -
>
> What I am trying to do is avoid having the location of the JPEG
> available to the surfer. An idea I have is to pass a parameter to the
> image. For example:
>
> showimage.php?imageid=12345
>
> My PHP script will get the location of the image and "read" it into
> memory. Then my HTML page will "somehow" use the image in memory rather
> than the usual <IMG...> tag.
>
> This currently works:
>
> <IMG alt="" border=0
>
> src="http://209.204.172.137/CANADA_RIDE_2001/Flag.jpg">
>
> Is there a way to replace the SRC property with a memory image?
>
change the basedir in my script to wherever (outside DOC_ROOT ?)
src="/show.php?fname=Flag.jpg">
converting imageid=12345 -> fname=Flag.jpg is umm, an exercize
left for the reader ...
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.