Jump to content

allow_url_fopen Question 2


php4ever

Recommended Posts

try this out:

 

<?

$dir = '/path/to/directory/';

$filecount = 0; $d = dir($dir);

while ($f = $d->read()) {

    if(($f!= ".") && ($f!= "..")) {

        if(!is_dir($f))

            $filecount++; 

        }

    }

echo 'there are ',$filecount,' files in this folder';

?>

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.