Jump to content

PHP command to scan directory?


TheBigLebowski

Recommended Posts

I'm sorry if this has already been answered in another thread. I am attempting to build a PHP photo gallery without MySQL. I've got everything figured out, except how I can possibly scan certain directories to produce a list of JPEGs inside of them?

 

The reason is that I want to allow my friend to update his photo gallery simply by dropping JPEGs into the appropriate folder, but I am not sure how, in PHP, to scan a certain directory to produce an array/list of all the images in it?

 

Can this be done in PHP? Without MySQL? Should I be looking into Javascript instead?

 

Thank you in advance for any suggestions.

Link to comment
https://forums.phpfreaks.com/topic/54831-php-command-to-scan-directory/
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.