Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

Re: [PHP3] getting all files in a directory From: Brett M. Amdur (amdur <email protected>)
Date: 08/16/99

You'll want to first check out the directory functions listed in the manual
at:
http://www.php.net/manual/ref.dir.php3

Getting what you want is pretty easy--just open a directory handle and
create a loop that iterates through all the files (use readdir()). For each
file, check its size with filesize().

Brett
-----Original Message-----
From: Dev Young <devon <email protected>>
To: php3 <php3 <email protected>>
Date: Monday, August 16, 1999 12:09 AM
Subject: [PHP3] getting all files in a directory

>
>I'm trying to write a script that can get all the files in a directory &
>basically show their names & sizes, on a web page. Any ideas or
>suggestions on how to do this? I've been looking through the filesystem
>functions...and can't figure out just what might work for this
>
> - Dev
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
>To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin <email protected>
>
>

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>