RE: [PHP] deletion of temp files

2001-07-11 Thread Randy Johnson

How do you associate a temp file with a session so PHP automatically deletes
it when garbage collection occurs

-Original Message-
From: Chris Lambert - WhiteCrown Networks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] deletion of temp files


Sessions support garbage removal, where the temp files will be deleted at a
random time after the user has left.

/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/

- Original Message -
From: Anurag Bhalla [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 3:14 AM
Subject: [PHP] deletion of temp files


Hi list

In my application,I need to generate some files for each
user who comes to my site.These files need to be deleted
once the user logs off. Pls suggest some way to delete these
files once the user logs off ; perhaps with the use of sessions

Regards

Anurag






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] deletion of temp files

2001-07-10 Thread Chris Lambert - WhiteCrown Networks

Sessions support garbage removal, where the temp files will be deleted at a
random time after the user has left.

/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/

- Original Message -
From: Anurag Bhalla [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 3:14 AM
Subject: [PHP] deletion of temp files


Hi list

In my application,I need to generate some files for each
user who comes to my site.These files need to be deleted
once the user logs off. Pls suggest some way to delete these
files once the user logs off ; perhaps with the use of sessions

Regards

Anurag






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] deletion of temp files

2001-07-10 Thread Jon Snell

One way to do this is to create a special directory in htdocs reserved only
for temporary files.  Add the following line to crontab or a user with
permissions to delete:

0 * * * * find /usr/local/apache/sitename/htdocs/specialdir/ -cmin
+1440 -exec -rm -f {}

Every hour this script will delete all files in specialdir over 24 hours
old.  Just make sure you use the right directory name :)

I like this approach best because it doesn't add a bunch of overhead to any
of the session scripts.

-Original Message-
From: Anurag Bhalla [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 2:11 AM
To: [EMAIL PROTECTED]
Subject: [PHP] deletion of temp files



Hi list

In my application,I need to generate some files for each
user who comes to my site.These files need to be deleted
once the user logs off. Pls suggest some way to delete these
files once the user logs off ; perhaps with the use of sessions

Regards

Anurag





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]