Solved

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

Posted on 2004-09-17
4
2,956 Views
Last Modified: 2008-02-01
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?
0
Comment
Question by:matrix717
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
darksinclair earned 125 total points
ID: 12089765
try this thread I think its what your looking for :

http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20734325.html?query=file+attributes&topics=103

If this is not what your looking for let us know and we'll get you a solution right away,

Cheers,
0
 
LVL 5

Expert Comment

by:darksinclair
ID: 12089784
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now