Funkce PHP chown() .
❮ Reference souborového systému PHPPříklad
Změnit vlastníka souboru „test.txt“:
<?php
chown("test.txt","charles")
?>
Definice a použití
Funkce chown() změní vlastníka zadaného souboru.
Syntax
chown(file, owner)
Hodnoty parametrů
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change owner for |
owner | Required. Specifies the new owner. Can be a user name or a user ID. |
Technické údaje
Návratová hodnota: | PRAVDA při úspěchu, NEPRAVDA při neúspěchu |
---|---|
Verze PHP: | 4,0+ |
❮ Reference souborového systému PHP