whelpton Posted August 23, 2009 Share Posted August 23, 2009 Hey. I have constructed a photo album for my familly using php and I am hoping to be able to delete files by using the get feature. For example, when the adress is delete.php?pic=148.jpg it would delete the file 148.jpg Can anyone show me how this could be done? Quote Link to comment https://forums.phpfreaks.com/topic/171562-deleting-files-get/ Share on other sites More sharing options...
.josh Posted August 23, 2009 Share Posted August 23, 2009 unlink Quote Link to comment https://forums.phpfreaks.com/topic/171562-deleting-files-get/#findComment-904742 Share on other sites More sharing options...
oni-kun Posted August 23, 2009 Share Posted August 23, 2009 You can use file_exists() alongside it to check, it'll be kinda fun writing that function actually. Quote Link to comment https://forums.phpfreaks.com/topic/171562-deleting-files-get/#findComment-904746 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.