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

search for in the

chmod> <basename
Last updated: Wed, 22 Jul 2009

view this page in

chgrp

(PHP 4, PHP 5)

chgrp — Veranderd de groep van een bestand

Beschrijving

bool chgrp ( string $filename , mixed $group )

Probeert de groep van het bestand filename te wijzigen naar group (aangegeven met naam of nummer). Alleen superusers mogen willekeurig de groep van een bestand wijzigen; andere gebruikers mogen de groep van een bestand wijzigen naar elke groep waar de gebruiker lid van is.

Geeft TRUE terug bij succes, FALSE indien er een fout is opgetreden.

Zie ook chown() en chmod().



add a note add a note User Contributed Notes
chgrp
Dan Dascalescu
04-Dec-2007 02: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: Wed, 22 Jul 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites