Page 1 of 1

Retrieving file's Author

Posted: Wed Sep 02, 2009 9:04 am
by Grizzzzzzzzzz
I've done a brief search through standard php functions, getting my hopes up by seeing 'fileowner' only to have them squashed seconds later. Basically i'm now just wondering if it's even possible to retrieve a file's "author" value(not the owner) using php, as shown below.

Image

as an incredibly simple example, i already have the below

Code: Select all

 
<?php
    $filename = "temp.txt";
 
     echo "<h1>".$filename."</h1>";
     $date = date ("d/m/y H:i:s.", filemtime($filename));
     echo "Last Modified:  " . $date;
     echo "</br></br>";
     
     //echo file author
 ?> 
 
and after the output of previous file modification, i need to be able to display the files author.

Obviously if there was a function that directly linked to this would be the most helpful, although any other string value i could manipulate for this purpose would do as well(obivoulsy not the file name), as in my end product i'll need to be displaying a table with the file name, when it was last modified and also the name of the person who last modified it.


Many thanks

Re: Retrieving file's Author

Posted: Wed Sep 02, 2009 12:01 pm
by Grizzzzzzzzzz
McInfo wrote:Did you modify the file name in your screen capture? I have checked a number of files and it looks like the summary tab in the properties dialog box appears only for media files (.jpg, .png, .mp3)
nope! i was surprised .txt files have them as well!;

Image

and yeah i was trying to avoid opening the files directly, as i'll probably need to get data from ~200+ files in one go and didn't want any lag.

Cheers for the reply though, i may try it that way and just see if it's as bad as i think it'll be.