RE: [PHP] Directory Listing
| From: | Brian Paulson | Date: | Tue, 12 Dec 2000 20:52:31 +0000 |
| Subject: | RE: [PHP] Directory Listing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29956@lists.php.net to get a copy of this message | ||
Try this
Function file_array()
{
$dir = ".";
$Mydir = opendir($dir);
$i=0;
while($file = readdir($Mydir))
{
$list[$i] = $file;
$i++;
}
sort($list);
return ($list);
}
Thank You
Brian Paulson
Sr. Web Developer
http://www.chieftain.com
bpaulson@chieftain.com
1-800-279-6397
-----Original Message-----
From: Charles Matner [mailto:cmatner@ccpalmbeach.com]
Sent: Tuesday, December 12, 2000 1:44 PM
To: php-general@lists.php.net
Subject: [PHP] Directory Listing
Is there a way to store a directory listing of files into an array or
variable?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net