[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: ?php $handle = opendir('.'); while (false != ($file = readdir($handle))) { if ( ($file != .) ($file != ..) (is_dir ($file)) ) echo li$file/li\n; } closedir($handle); ?

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

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

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