Makeshift67 Posted October 9, 2008 Share Posted October 9, 2008 i would like to know if there is some script that will delete a certain file after it has been viewed. Like, and image file that i only want one person to see, and as soon as they open the page, the picture gets deleted so it can not be viewed again. ---------------- Now playing: NOFX - Johnny Appleseed via FoxyTunes Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/ Share on other sites More sharing options...
Maq Posted October 9, 2008 Share Posted October 9, 2008 Do you actually want to delete this file? Or do you just not want to show it when after someone sees it? Also, how do you want to do this by username, ip, session? Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660648 Share on other sites More sharing options...
Makeshift67 Posted October 9, 2008 Author Share Posted October 9, 2008 well, either delete it, or deny access to it after the page has been viewed. and, i think session. because i cant get my friend's IP, he is very skeptical. ---------------- Now playing: Pantera - Walk via FoxyTunes Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660652 Share on other sites More sharing options...
Maq Posted October 9, 2008 Share Posted October 9, 2008 Yes you can, it's: $ip=$_SERVER['REMOTE_ADDR']; So what do you want to do? Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660656 Share on other sites More sharing options...
Makeshift67 Posted October 9, 2008 Author Share Posted October 9, 2008 well, i want it so if anyone viewes the page, the page either gets deleted, or, all access is denied to it. ---------------- Now playing: Anti-Flag - Mumia's Song via FoxyTunes Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660657 Share on other sites More sharing options...
Maq Posted October 9, 2008 Share Posted October 9, 2008 Do you have access to a DB? This would make things much easier. Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660658 Share on other sites More sharing options...
Makeshift67 Posted October 9, 2008 Author Share Posted October 9, 2008 yes i do. and do you have MSN? it would make this a whole lot easier. ---------------- Now playing: The Number Twelve Looks Like You - Clarissa Explains Cuntainment via FoxyTunes Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660665 Share on other sites More sharing options...
Maq Posted October 9, 2008 Share Posted October 9, 2008 How about AIM? Quote Link to comment https://forums.phpfreaks.com/topic/127658-delete-file-after-being-read/#findComment-660668 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.