Re: Novice PHP Question - Listing Folder Contents
| From: | Tijnema ! | Date: | Tue, 10 Apr 2007 20:13:40 +0000 |
| Subject: | Re: Novice PHP Question - Listing Folder Contents | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252461@lists.php.net to get a copy of this message | ||
On 4/10/07, revDAVE <coolcat@hosting4days.com> wrote:
I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list sub folders filenames - not their contents)http://www.php.net/manual/en/function.scandir.php
2 - List/ display the contents on the same Web-pagehttp://www.php.net/manual/en/function.file-get-contents.php
Q: I'm sure this is most likely doable - but I sure could use some help - any ideas how to do this? Example list: file1.php file2.php file22.txt file1.pdf - that sort of thing