Jump to content

[SOLVED] Possible to display contents in mb/gb


graham23s

Recommended Posts

Yep, it's possible.

 

See user notes for filesize() for some solutions.

 

Alternatively, you could use system() to execute your local ls or dir with the appropriate path and enabled switches and parse that output.  It's not a portable solution, but might work for you.  Don't forget to escape user input.

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.