|
|
|
|
![]() ![]() |
Aug 14 2006, 05:12 AM
Post
#1
|
|
|
Member [ Level 2 ] Group: Members Posts: 54 Joined: 28-May 06 Member No.: 13,691 |
Dear Friends
I need solution to a problem. The problem is as under: I am creating certain files (playlist) in server disk when user selects some songs. The files are created in ram format. What I want to do is to delete these files created during a particular session. Is it possible to do so? Now I am deleting these files using on Unload event fired by JavaScript. I am using PHP. |
|
|
|
Aug 14 2006, 08:02 PM
Post
#2
|
|
|
Super Member Group: [HOSTED] Posts: 760 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 |
I think it is possible to delete the files before the session is ended by using the unlink() php function, but you need the correct system priviligies to do it.
Best regards, |
|
|
|
Aug 16 2006, 07:48 PM
Post
#3
|
|
|
Super Member Group: Members Posts: 595 Joined: 4-September 04 Member No.: 228 |
Or use a system call?
|
|
|
|
Aug 19 2006, 09:22 AM
Post
#4
|
|
|
Super Member Group: [HOSTED] Posts: 760 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 |
|
|
|
|
Aug 19 2006, 03:31 PM
Post
#5
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 18 Joined: 19-August 06 Member No.: 15,398 |
Dear Friends I need solution to a problem. The problem is as under: I am creating certain files (playlist) in server disk when user selects some songs. The files are created in ram format. What I want to do is to delete these files created during a particular session. Is it possible to do so? Now I am deleting these files using on Unload event fired by JavaScript. I am using PHP. Hi I have just learnt how to do it. I think you can use the session_destroy() function. More information can be found at http://sg.php.net/session_destroy I hope that the website would give you the answer that you are searching for. Cheers. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th October 2008 - 07:51 AM |