mdmartiny Posted March 5, 2011 Share Posted March 5, 2011 I have a php script that I wrote that enters information into a database and uploads images to the server. What I need to do now is delete the files from the server when the corresponding database records are deleted. How would I go about doing that? Link to comment https://forums.phpfreaks.com/topic/229684-delete-files-from-server/ Share on other sites More sharing options...
Fergal Andrews Posted March 5, 2011 Share Posted March 5, 2011 Hi mdmartinny, Use unlink (http://www.php.net/manual/en/function.unlink.php). cheers, Fergal Link to comment https://forums.phpfreaks.com/topic/229684-delete-files-from-server/#findComment-1183292 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.