Solved

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

Posted on 2004-09-17
4
2,963 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

Independent Software Vendors: 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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

685 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