-
Reading file names from subfolders
Relatively new to PHP but I really need help with the following.
I created a bulletin board display at work, driven by PHP, it currently displays PPT exported as Flash, a rotating news feed, clock and weather.
I'm trying to simplify so users can copy their own PPT files as JPGs instead of me having to convert them to Flash.
So...I would like users to be able to export PPT slides as JPG images. The result is a folder with JPG files named as follows:
\foldername\slide1.jpg
\foldername\slide2.jpg
\foldername\slide3.jpg
etc...
When another use exports their slides and copies them to the share, it shows like this:
\person2\slide1.jpg
\person2\slide2.jpg
\person2\slide3.jpg
etc...
I'd like a script that can read filenames from the root \ and recursively look for any subfolders and read filenames from those, then store them all in an array so I can loop through them and display them as rotating images on our LCD in the break room...bulletin board.
Any clues?
Sanddlife
-
-
http://www.php.net/manual/en/function.opendir.php
You may open a directory, do a loop through that directory, and then do a loop through each subdirectory inside it.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks