Link to home
Start Free TrialLog in
Avatar of prinx
prinx

asked on

get the file size

Hi , can some1 pls teach mi how to get the file size of a file in mb ?
foreg: "4.53mb"
thanx
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of prakashk021799
prakashk021799

$file_size = -s $file;
$file_size_in_mb = $file_size / (1024 * 1024);