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

search for in the

chmod> <basename
[edit] Last updated: Fri, 17 May 2013

view this page in

chgrp

(PHP 4, PHP 5)

chgrpCambia il gruppo del file

Descrizione

bool chgrp ( string $filename , mixed $group )

Tenta di cambiare il gruppo del file filename in group (specificato per nome o numero). Solo l'amministratore può cambiare arbitrariamente il gruppo di un file; gli altri utenti possono cambiare il gruppo dei file solo fra gruppi di cui sono membri.

Restituisce TRUE se ha successo; FALSE altrimenti.

Nota: Questa funzione non opererà su file remoti perché il file che deve essere esaminato deve essere accessibile attraverso il filesysmte del server.

Nota: Quando safe-mode è abilitato, PHP controlla che i file o le directory sulle quali si sta andando a lavorare, abbiano lo stesso UID dello script che è in esecuzione.

Vedere anche chown() e chmod().



add a note add a note User Contributed Notes chgrp - [1 notes]
up
1
leaksin [ at ] gmail [ dot ] com
6 months ago
Note: chgrp() is aware of the actual filesystem.
So you need to check it by using file_exists() function or...

 
show source | credits | stats | sitemap | contact | advertising | mirror sites