Solved

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

Posted on 2004-09-17
4
2,967 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

632 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