vicky99 0 Report post Posted August 14, 2006 Dear FriendsI 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. Share this post Link to post Share on other sites
TavoxPeru 0 Report post Posted August 14, 2006 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, Share this post Link to post Share on other sites
Hercco 0 Report post Posted August 16, 2006 Or use a system call? Share this post Link to post Share on other sites
TavoxPeru 0 Report post Posted August 19, 2006 Or use a system call?Yes you are right, it is another solution but many host servers for security reasons disable this functions so you can't use it.Best regards, Share this post Link to post Share on other sites
humphrey88 0 Report post Posted August 19, 2006 Dear FriendsI 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. HiI 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. Share this post Link to post Share on other sites