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? Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/ 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? Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/#findComment-217688 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.. Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/#findComment-217689 Share on other sites More sharing options...
boo_lolly Posted March 29, 2007 Share Posted March 29, 2007 native-php directory functions Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/#findComment-217692 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 Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/#findComment-217693 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... Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/#findComment-217731 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. Link to comment https://forums.phpfreaks.com/topic/44827-directory-file-listing/#findComment-217746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.