Bit of a "propellorhead" this one!
I can obtain UID an GID of a file using
$this_group=filegroup($this_item);
$this_owner=fileowner($this_item);
But is there a better (cleaner) way of obtaining the textual equivalent without doing this:
$this_group = filegroup($this_item);
$group_string = "grep ".$this_group." /etc/group|awk -F: '{ print $1 }'";
$get_group_text = exec($group_string, $text_group);
$this_group_text = $text_group[0];
$this_owner = fileowner($this_item);
$owner_string = "grep ".$this_owner." /etc/passwd|awk -F: '{ print $1 }'";
$get_owner_text = exec($owner_string, $text_owner);
$this_owner_text = $text_owner[0];
....... because although it works I feel there just should be some pre-compiled php function that does it.
(I am still using PHP3 by the way - sorry)