PHP fileowner() function
Definition and Usage
fileowner() function returns the owner of the file.
If successful, returns the user ID of the file owner. If failed, returns false. User ID is returned in numeric format.
Syntax
fileowner(filename)
Parameter | Description |
---|---|
filename | Required. Specify the file to be checked. |
Tips and Comments
Tip:ຜົນຂອງອາສາລະການນີ້ຈະຖືກກັກຄວາມລັບ. clearstatcache() ທີ່ຈະລຶບການກັກຄວາມລັບ.
Tip:User ID ທີ່ກັບຕົວເລກຄືກັບຄຳໃຊ້, ກະຕຸ້ນນຳໃຊ້ posix_getpwuid() ເພື່ອປ່ຽນຄຳໃຊ້ເປັນຊື່ຜູ້ນຳ.
Example
<?php echo fileowner("test.txt"); ?>