Jump to content

displaying the size of a file...


son.of.the.morning

Recommended Posts

i want to display the size of a file but i round it off to the nearest kb.

 

I am using...

($_FILES["file"]["size"]/1024/1024)."mb"

 

i am geting it return something like this....

1.0313243865967mb

and i want it to be more like

1.03mb

 

any idears???

Link to comment
https://forums.phpfreaks.com/topic/213048-displaying-the-size-of-a-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.