Deleting a file from a directory
Posted: Mon Nov 04, 2002 5:14 pm
I've set up a content management system for a client that allows them to change the text on their site, as well as upload images to the server. The MySQL database then drops in the appropriate names in the appropriate rows to refer to the images.
My question is how do I delete the images off of the server should they want to delete an entry. I've got the info being deleted from the DB, but the images remain on the server whether they're being referenced to or not.
I've searched all over the forums, and the tutorials sections, and have found tutorials on uploading and downloading files from a server, but none on deleting files from a server.
Any help would be greatly appreciated.
Thanks
My question is how do I delete the images off of the server should they want to delete an entry. I've got the info being deleted from the DB, but the images remain on the server whether they're being referenced to or not.
I've searched all over the forums, and the tutorials sections, and have found tutorials on uploading and downloading files from a server, but none on deleting files from a server.
Any help would be greatly appreciated.
Thanks