Re: [PHP] directory structure list

2002-01-24 Thread Mike Frazer
Anyone who wants to see the directory and filesystem fiunctions in action together can go to http://www.invertedmind.com/baby/ (pardon the images, they're of my nephew, I originally wrote the script because directory listings are turned off on the server). If you want a copy of the script you can

Re: [PHP] directory structure list

2002-01-24 Thread Erik Price
Hmm... I'm not familiar with the directory functions yet. But perhaps you can use `ls -F` somehow -- this prints the name of each file in the directory with a special character to denote its type. For directories, this is a forwardslash. I.e: localhost:~/Documents/Media Lab$ ls -F (admin)ind

RE: [PHP] directory structure list

2002-01-24 Thread sean
Sorry for the posting, I hadn't looked hard enough. If any of you need something along the same lines go: http://www.php.net/manual/en/class.dir.php Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

[PHP] directory structure list

2002-01-24 Thread sean
Hello, I need to print out a list of directories, which is a piece of cake, just do something out of the manual: $file\n"; } closedir($handle); ?> The thing is, I need the sub-directories, and the sub-directories under them... ad infinitum in a list format. i.e. *Dir1 *SubDir1of1 *SubDir2