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]

 



Hi,

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?

Thanks
Suad

--
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