Jump to content

File checking and deletion


smc

Recommended Posts

Howdy,

Okay my question is, as I near the finish line, how to check if files exist, and if they do to delete them.

Basically heres my problem. I allow image editation, so basically before I upload the new image I need to find if there is already an image with that name and if so delete it.

How would I go about checking to see if a file is in a directory and then deleting it?

Thanks for your help!
Link to comment
https://forums.phpfreaks.com/topic/36130-file-checking-and-deletion/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.