Get owner of current DirectoryIterator item in PHP
Description
The following code shows how to get owner of current DirectoryIterator item.
Example
/* w w w . j av a2 s. co m*/
//This example displays the owner of the directory which contains the script.
<?php
$iterator = new DirectoryIterator(dirname(__FILE__));
print_r(posix_getpwuid($iterator->getOwner()));
?>