Re: Reporting the size of a file/directory on the web server. 820420
| From: | Jason Wong | Date: | Fri, 15 Mar 2002 10:56:45 +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-88638@lists.php.net to get a copy of this message | ||
On Friday 15 March 2002 18:32, 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.
Manual > Filesystem functions
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
God help those who do not help themselves.
-- Wilson Mizner
*/