Hi there:
How do i get the last modified date and the owner of a selected file..?
Thanks
mallu
file info
Moderator: General Moderators
get the owner http://uk.php.net/manual/en/function.fileowner.php
last modified http://uk.php.net/manual/en/function.filemtime.php
Mark
last modified http://uk.php.net/manual/en/function.filemtime.php
Mark
$fileowner is alwys giving me root
Thanks for your help
mallu
Thanks for your help
mallu
Code: Select all
$startscript = $froot.$fdir.$ffile;
$fileowneruid=fileowner($startscript);
$fileownerarray=posix_getpwuid($fileownerid);
$fileowner=$fileownerarrayї'name'];