Get file size from URL


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function fsize($url)
  2. {
  3. $x = @filesize($url);
  4. return round($x / (1024*1024),2) ;
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.