mccdave Posted May 22, 2008 Share Posted May 22, 2008 Hello I would appreciate some help with the following: I need a user interface so induviduals can delete images from a set dir using php. Can anyone point me in the direction of a script? Thanks Dave Link to comment https://forums.phpfreaks.com/topic/106771-delete-files-from-folder/ Share on other sites More sharing options...
947740 Posted May 22, 2008 Share Posted May 22, 2008 To delete a file, use the function unlink(). E.G. $dir = $_SERVER['DOCUMENT_ROOT']."/images/"; $filename = "something.jpg"; unlink($dir.$filename); Link to comment https://forums.phpfreaks.com/topic/106771-delete-files-from-folder/#findComment-547316 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.