Retrieving file's Author
Posted: Wed Sep 02, 2009 9:04 am
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.

as an incredibly simple example, i already have the below
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

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