Files and Folders: Format File
Peter Molefe Ramokone (contact me)
This class can be used to retrieve information about a file.
It can determine the file name extension, the associated MIME type, the file access permissions, the file size, the width and height in case it is a an image file, file owner, creation, last access and modification time.
The class may also format the file size in bytes, KB, MB, GB and TB.
Click here for detailed information about this class on phpclasses.org