Re: slight quik question
| From: | Jason Wong | Date: | Mon, 07 Apr 2003 05:33:34 +0000 |
| Subject: | Re: slight quik question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142636@lists.php.net to get a copy of this message | ||
On Monday 07 April 2003 10:03, Martin Towell wrote:
> something like:
>
> URL: http://site.com/get_image.php?name=image_name_here.jpg
>
> SRC:
> <?
> if (file_exists("path/to/file/$name"))
> passthru("path/to/file/$name");
> else
> passthru("path/to/file/nofile_image.gif");
> ?>
>
> (you'll need to check the spelling of passthru... maybe it's readfile() -
> or something...)
The appropriate headers needs to be sent as well -- search the archives.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
AWAKE! FEAR! FIRE! FOES! AWAKE!
FEAR! FIRE! FOES!
AWAKE! AWAKE!
-- J. R. R. Tolkien
*/