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? 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 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. Link to comment https://forums.phpfreaks.com/topic/171562-deleting-files-get/#findComment-904746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.