LanceT Posted March 8, 2007 Share Posted March 8, 2007 What can I use to delete files by their url? For example, the script may want to delete the file www.domain.com/folder/subfolder/hello.jpg Assuming this file is on the same server. I need the PHP function to be able to delete this file. How? Link to comment https://forums.phpfreaks.com/topic/41841-deleting-files-by-url/ Share on other sites More sharing options...
JBS103 Posted March 8, 2007 Share Posted March 8, 2007 The unlink() function will delete a file. Link to comment https://forums.phpfreaks.com/topic/41841-deleting-files-by-url/#findComment-202900 Share on other sites More sharing options...
LanceT Posted March 8, 2007 Author Share Posted March 8, 2007 I'm aware of the unlink function, but does it work with URLs? Link to comment https://forums.phpfreaks.com/topic/41841-deleting-files-by-url/#findComment-202964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.