Re: How can I get in PHP the number of files in a directory

Re: How can I get in PHP the number of files in a directory

am 31.05.2006 14:36:22 von Stut

suad wrote:

> This is for reading a file:
> > $handle = fopen("/home/rasmus/file.gif", "r");
> ?>
>
> How can I get in PHP the number of files in the directory (rasmus)
> and the files names in a loop?


http://php.net/glob or http://php.net/readdir

-Stut

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How can I get in PHP the number of files in a directory

am 31.05.2006 14:37:02 von Brad Bonkoski

http://www.php.net/manual/en/ref.dir.php

suad wrote:

> Hi,
>
> This is for reading a file:
> > $handle = fopen("/home/rasmus/file.gif", "r");
> ?>
>
> How can I get in PHP the number of files in the directory (rasmus)
> and the files names in a loop?
>
> Thanks
> Suad
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

How can I get in PHP the number of files in a directory

am 31.05.2006 15:32:10 von suad

Hi,

This is for reading a file:
$handle = fopen("/home/rasmus/file.gif", "r");
?>

How can I get in PHP the number of files in the directory (rasmus)
and the files names in a loop?

Thanks
Suad

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php