Funkce PHP chgrp() .
❮ Reference souborového systému PHPPříklad
Změňte uživatelskou skupinu na "admin" pro soubor "test.txt":
<?php
chgrp("test.txt","admin")
?>
Definice a použití
Funkce chgrp() změní uživatelskou skupinu zadaného souboru.
Syntax
chgrp(file, group)
Hodnoty parametrů
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change user group for |
group | Required. Specifies the new group name or number |
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