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? Quote Link to comment 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 Quote Link to comment 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.