Changes the owner of a file.
This function changes the owner of a file. The owner specified can either be in numerical form or the name of the user. TRUE is returned on success. If an error occurs, FALSE is returned.
<?php
if (chown("file.txt", "root")) {
print "File owner changed";
}
?> File owner changed.The owner of a file is changed.