Re: Reporting the size of a file/directory on the web server. 820420
| From: | Luke Welling | Date: | Fri, 15 Mar 2002 11:46:02 +0000 |
| Subject: | Re: Reporting the size of a file/directory on the web server. 820420 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88641@lists.php.net to get a copy of this message | ||
"Nick Patsaros" wrote:
> I've scoured the PHP manual and I still can't seem to
> find it. What I'm trying to do is have PHP grab the
> size of a file or directory (say of a php file) then
> when that file is displayed, I want it to display the
> size of the file in the footer of the page. I would
> also like to have the viewer of my web site be able to
> check the total size in KB or MB of the entire site.
> I also forsee applications of this in the direction of
> reporting the filesize of a file on my FTP which could
> be used to calculate the approximate download time for
> different connection types.
>
> Is there a way do this? If so I thank you in advance
> for the help.
http://www.php.net/filesize
Luke Welling
--
PHP and MySQL Web Development
Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842