siddscool19 Posted October 8, 2008 Share Posted October 8, 2008 I want the script to delete the file after it has been downloaded automatically.. How to do that? Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 8, 2008 Share Posted October 8, 2008 unlink(); when user press link update database link was pressed delete file........ Quote Link to comment Share on other sites More sharing options...
siddscool19 Posted October 8, 2008 Author Share Posted October 8, 2008 see when user clicks link and it deletes the file then won't the download of user stop? Quote Link to comment Share on other sites More sharing options...
R4nk3d Posted October 8, 2008 Share Posted October 8, 2008 This is a great idea and this would help me a lot. But siddscool does have a good point. =/ Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 8, 2008 Share Posted October 8, 2008 crate a database for the names off the files that need to be deleted... press the link, the link updates that database with the file names and use a cron to point to a page to delete all files with unlink..................................... Quote Link to comment Share on other sites More sharing options...
siddscool19 Posted October 8, 2008 Author Share Posted October 8, 2008 Can anyone give me the codings? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.