PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

chmod> <basename
Last updated: Sat, 24 Mar 2007

view this page in

chgrp

(PHP 4, PHP 5)

chgrp — Změnit skupinu souboru

Popis

bool chgrp ( string $filename, mixed $group )

Pokusí se nastavit skupinu souboru filename na group. Pouze superuživatel může libovolně změnit skupinu souboru; ostatní uživatelé mohou změnit skupinu souboru na jinou skupinu, jíž jsou členy.

Při úspěchu vrací TRUE; jinak FALSE.

Viz také chown() a chmod().

Poznámka: Tato funkce nefunguje na Windows systémech.



add a note add a note User Contributed Notes
chgrp
Dan Dascalescu
03-Dec-2007 08:12
If you call chgrp and pass a non-existent group, you'll get the warning "Warning: chgrp(): Unable to find gid for nogroup in".

To check beforehand if the group exists, use posix_getgrid() or posix_getgrnam().

chmod> <basename
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites