Jump to content

getting dir contents with option to delete


richiec

Recommended Posts

Hey there, I have an image gallery running on my website right now and I want to give the site admins access to add/delete the images from the different gallery directories.

 

But to be honest I'm totally lost on how to do it lol I know my way around PHP but I've never had to code something to pull up the dir contents with an option to delete the files.

 

I've found scandir which will get the contents of a dir and unlink which deletes a file but I have no clue how to get them to work together, anyone got any ideas or a different function if I'm looking in the wrong direction with those functions.

 

Any help would be much appreciated.

 

Thank you!

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.