how to determine filesize of all object ((images, css, objects and scripts)) defined inside a html page
<p>Is there way to determine filesize of html file 
forexample i have a url</p>

<p><a href="http://url/item/id/1" rel="nofollow">http://url/item/id/1</a></p>

<p>can i determine the size of files when this url is loaded</p>

<p>I want to show in page 256 Kb loaded in 0.268 seconds at the end of page</p>

<p>try updates</p>

<p>on localhost/testing/index.php</p>

<pre><code>echo filesize("http://localhost/testing/testing.html");
</code></pre>

<p>on localhost/testing/testing.html</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
    &lt;/head&gt; 
    &lt;body&gt;
        &lt;img src="test.jpg"/&gt;
    &lt;/body&gt;
&lt;/htm&gt;
</code></pre>

<p>on apache error.log</p>

<pre><code> [Fri Dec 31 14:46:05 2010] [error] [client ::1] PHP Warning:  filesize(): stat
 failed for http://localhost/testing/testing.html in /var/www/testing/index.php 
 on line 4
</code></pre>

<p>on index.php if i do </p>

<pre><code>echo filesize("/var/www/testing/testing.html");
</code></pre>

<p>then i get 80 bytes that is without any image</p>
