Link to home
Start Free TrialLog in
Avatar of matrix717
matrix717

asked on

How to get File attributes (size,version,modified date,etc) using PHP

I'm using IIS and I need that from a PHP file, to get the attributes of a file , for example the size,version,modified date,creation... how can I do this?
ASKER CERTIFIED SOLUTION
Avatar of darksinclair
darksinclair

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 darksinclair
darksinclair

also for a reference list of all the availible PHP commands on files check out the following site :

http://www.php.net/manual/en/ref.filesystem.php

the following inparticular I think is what your looking for:

fileatime -- Gets last access time of file
filectime -- Gets inode change time of file
filegroup -- Gets file group
fileinode -- Gets file inode
filemtime -- Gets file modification time
fileowner -- Gets file owner
fileperms -- Gets file permissions
filesize -- Gets file size
filetype -- Gets file type

Cheers.