Re: unlink images
| From: | Jason Wong | Date: | Fri, 26 Nov 2004 19:29:26 +0000 |
| Subject: | Re: unlink images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202913@lists.php.net to get a copy of this message | ||
On Saturday 27 November 2004 03:13, Julian wrote:
> I would like to delete a set of images right after they are displayed on
> the page using unlink.
I'm curious to know why you want this.
> Unfortunately, with unlink the images are deleted
> before they display on the user's browser. Is there a way to do this?
Channel your image requests to a php script that:
fopen()
fpassthru()
unlink()
Haven't tried it, but in theory it looks like it should work.
--
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
------------------------------------------
/*
Talkers are no good doers.
-- William Shakespeare, "Henry VI"
*/