RE: [PHP] Image and PHP

From: Date: Thu, 14 Apr 2005 14:03:17 +0000
Subject: RE: [PHP] Image and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213085@lists.php.net to get a copy of this message
> I have a page where i place an image but i want when i show > the image delete it. How can i do this? > What I would probably do is create a cleanup function/class in the script that gets a list of all the images in the directory in question and deletes anything that more then, say, an hour old. I don't like situations that may result the client not receiving data because the server was "too fast" or the client was "too slow". So all you'll have to do is make sure you have a folder that only contains the images for this process and don't upload any other images to that folder. Simple enough. -M

« previous php.general (#213085) next »