This class can be used to retrieve all information about a file on a web server.
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.
Here's the link to the class.