How can I get the NTFS fileowner?
| From: | Steven Greenberg | Date: | Mon, 08 Oct 2001 05:42:33 +0000 |
| Subject: | How can I get the NTFS fileowner? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-9743@lists.php.net to get a copy of this message | ||
Hi everyone...
I just wrote my first PHP app (a simple directory searching page for an FTP
server) - it works great, but I'd like to display the uploader's name next
to each file. Unfortunately, it seems that the fileowner() function always
returns zero on Windows (?), and even if that worked I couldn't resolve it
to a username because it appears that posix_getpwuid() and the rest of the
Posix extensions are not available for Windows(?). I know how to get the
NTFS fileowner in 'C' - if there's no other solution, I guess I could write
my own PHP extension - not exactly sure how difficult that is, though - any
ideas on any of this?
TIA..
- Steve