Re: temporary image

From: Date: Thu, 20 Dec 2001 01:00:10 +0000
Subject: Re: temporary image
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78277@lists.php.net to get a copy of this message
On the other hand if you want to keep track of the number of files generated you might want to try something like this: $i=1; $thePath=$temp_dir."/$fileprefix"; while (file_exists($thePath.$i)) { $i++; } $thePath.=$i; ($thePath stores a valid temp filename after that) Bogdan > hallo, > > my applications generates a html-page, with a link to an image. > this image is created by the application, and should exist only temporarily > - so it can be deleted after being accessed by the html-page - any ideas > how to implement this? is working with timetamps (microseconds) safe for > creating the image's unique name? > > thanks > michi

« previous php.general (#78277) next »