Re: directory list function?
| From: | Maciek Ruckgaber Bielecki | Date: | Fri, 27 Dec 2002 20:46:51 +0000 |
| Subject: | Re: directory list function? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129467@lists.php.net to get a copy of this message | ||
depending on what you need, sometimes this does the trick for me :-)
exec("ls path/",$files);
foreach($files as $value)
{
$elem .= $value."\n";
}
echo $elem;
------------------------------------------------------------------
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-----------------------------------------------------------------
Maciek Ruckaber Bielecki
On Fri, 27 Dec 2002, Dade Register wrote:
> A question for you all. Is there a php function that
> could count the number of files in a dir? Using
> FreeBSD and php4.2.2 and Apache. Thanx.
> -Dade
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>