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? Link to comment https://forums.phpfreaks.com/topic/127489-delete-file-after-download-in-php/ 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........ Link to comment https://forums.phpfreaks.com/topic/127489-delete-file-after-download-in-php/#findComment-659596 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? Link to comment https://forums.phpfreaks.com/topic/127489-delete-file-after-download-in-php/#findComment-659599 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. =/ Link to comment https://forums.phpfreaks.com/topic/127489-delete-file-after-download-in-php/#findComment-659602 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..................................... Link to comment https://forums.phpfreaks.com/topic/127489-delete-file-after-download-in-php/#findComment-659604 Share on other sites More sharing options...
siddscool19 Posted October 8, 2008 Author Share Posted October 8, 2008 Can anyone give me the codings? Link to comment https://forums.phpfreaks.com/topic/127489-delete-file-after-download-in-php/#findComment-659842 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.