Forum Moderators: coopster

Message Too Old, No Replies

list every foldername, subfoldername and any filenames

         

si3w82

11:02 am on Aug 1, 2006 (gmt 0)

10+ Year Member



hi good day,
i'm new to php
i now develop web site using php and i want to display all the file and folder in the web site as below:

For example:

Index of /intranet/general
Name Last modified Size Description
----------------------------------------------------------
Parent Directory -
Templates/ 01-Aug-2006 04:09 -
testing.php 01-Aug-2006 04:17 5
---------------------------------------------------------

so i want to know izzit got any php script to do that?
i just want to run this PHP script and everything is expanded and listed for me in the web site, i dont want to hard code it.

Thx you

coopster

11:38 am on Aug 1, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, si3w82.

The PHP Directory Functions [php.net] are what you are looking for.

si3w82

8:51 am on Aug 2, 2006 (gmt 0)

10+ Year Member



Thank you..
i already get the solution from the reference that you provide to me.