cma2007 Posted September 3, 2015 Share Posted September 3, 2015 I have added a gallery to my website and I really like it. It allows me to upload, it resizes automatically, and displays very nicely. But I need to be able to have a way to delete the images. I have spent hours on the Internet searching for a script that will display the contents of a folder and allow me to simply select and delete an image. I do not have the ability to just sit down and start scripting, but when I see a script, I can generally make it work to fit my needs. But I cannot find anything out there for what I am looking for. It seems like it should be fairly easy to do. Can someone please help me get started with this? Thank you. Charlie Quote Link to comment https://forums.phpfreaks.com/topic/298048-help-to-get-started-in-the-right-direction/ Share on other sites More sharing options...
scootstah Posted September 5, 2015 Share Posted September 5, 2015 You should be storing a pointer to the file in your database, and then you can just run unlink. You can use glob to display/search through files in a directory. Quote Link to comment https://forums.phpfreaks.com/topic/298048-help-to-get-started-in-the-right-direction/#findComment-1520308 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.