Re: Novice PHP Question - Listing Folder Contents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/10/07, revDAVE <coolcat@xxxxxxxxxxxxxxxx> 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-page

http://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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux