php3-list | 199908
Date: 08/16/99
- Next message: Anton Permykov: "[PHP3] PHPLIB"
- Previous message: Dev Young: "[PHP3] getting all files in a directory"
- Maybe in reply to: Dev Young: "[PHP3] getting all files in a directory"
- Next in thread: Robert Aden: "Re: [PHP3] getting all files in a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Anton Permykov: "[PHP3] PHPLIB"
- Previous message: Dev Young: "[PHP3] getting all files in a directory"
- Maybe in reply to: Dev Young: "[PHP3] getting all files in a directory"
- Next in thread: Robert Aden: "Re: [PHP3] getting all files in a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

