Search found 7 matches
- Tue Feb 21, 2006 2:38 pm
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
- Tue Feb 21, 2006 2:12 pm
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
- Tue Feb 21, 2006 1:20 pm
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
Thanks, used the following but it won't recursively dive into the directorys... <?php // Note that !== did not exist until 4.0.0-RC2 $dirlist = array(); function dirlisting($path) { if ($handle = opendir($path)) { /* This is the correct way to loop over the directory. */ while (false !== ($file = re...
- Mon Feb 20, 2006 8:22 am
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
- Sat Feb 18, 2006 8:25 am
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
- Sat Feb 18, 2006 7:03 am
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
- Sat Feb 18, 2006 5:41 am
- Forum: PHP - Code
- Topic: Directory listing script, need a little help...
- Replies: 12
- Views: 520
Directory listing script, need a little help...
Hi all, I've been using this script with no problems but recently I was asked if I could get the listings in alphabetical order. Any easy ideas? Thanks, ds function direcho($path) {global $filetotal, $totaldirs; if ($dir = opendir($path)) {while (false !== ($file = (readdir($dir)))) { if (is_dir($pa...