Posted By

Heol on 09/30/11


Tagged

file size


Versions (?)

Get file size from URL


 / Published in: PHP
 

  1. function fsize($url)
  2. {
  3. $x = @filesize($url);
  4. return round($x / (1024*1024),2) ;
  5. }

Report this snippet  

You need to login to post a comment.