title: php how to get web image size in kb?
body: <p>php how to get web image size in kb?</p>
  
  <p><code>getimagesize</code> only get the width and height.</p>
  
  <p>and <code>filesize</code> caused <code>waring</code>.</p>
  
  <pre><code>$imgsize=filesize("http://static.adzerk.net/Advertisers/2564.jpg");
  echo $imgsize;
  </code></pre>
  
  <p><code>Warning: filesize() [function.filesize]: stat failed for http://static.adzerk.net/Advertisers/2564.jpg</code></p>
  
  <p>Is there any other way to get a web image size in kb?</p>