kickassamd Posted March 29, 2007 Share Posted March 29, 2007 Was wondering if anyone has already built something that can list all files and directories \ sub directories.. I can list files and directories, But im wanting to do it with a twist... DIRA --filename.txt --filenameb.txt DIRb --something.jpg --subDIR ----filename.txt I would like to list them in some sort of tree view instead of listing the flat out... Any ideas? Or pre-written scripts? Quote Link to comment Share on other sites More sharing options...
MikeDXUNL Posted March 29, 2007 Share Posted March 29, 2007 do you want to be able to delete, rename, and edit files and folders too? Quote Link to comment Share on other sites More sharing options...
DeathStar Posted March 29, 2007 Share Posted March 29, 2007 I made a dictionary listing program! Just not like you are mentioning. and just for viewing.. Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted March 29, 2007 Share Posted March 29, 2007 native-php directory functions Quote Link to comment Share on other sites More sharing options...
BlackenedSky Posted March 29, 2007 Share Posted March 29, 2007 use the php dir functions, and wrap each directory in a paragraph, and set the indent from the left with css or something which increases say 10px for each sub directory or generate an xml file of the dir structure and display it that way either using xls, or javascript Quote Link to comment Share on other sites More sharing options...
kickassamd Posted March 29, 2007 Author Share Posted March 29, 2007 do you want to be able to delete, rename, and edit files and folders too? No i just want to view files... Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted March 29, 2007 Share Posted March 29, 2007 Use these functions... http://us2.php.net/manual/en/ref.dir.php#61285 with a little modification to the printTree function it will do what you want. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.