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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



suad wrote:

This is for reading a file:
<?php
$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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux