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

search for in the

lchown> <is_writeable
Last updated: Fri, 06 Nov 2009

view this page in

lchgrp

(PHP 5 >= 5.1.2)

lchgrpChanges group ownership of symlink

Descrição

bool lchgrp ( string $filename , mixed $group )

Attempts to change the group of the symlink filename to group .

Only the superuser may change the group of a symlink arbitrarily; other users may change the group of a symlink to any group of which that user is a member.

Parâmetros

filename

Path to the symlink.

group

The group specified by name or number.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em falhas.

Exemplos

Exemplo #1 Changing the group of a symbolic link

<?php
$target 
'output.php';
$link 'output.html';
symlink($target$link);

lchgrp($link8);
?>

Notas

Nota: Esta função não trabalha com arquivos remotos, de forma que o arquivo a ser examinado precisa ser acessível pelo sistema de arquivos do servidor.

Nota: Quando o safe-mode está ativo, o PHP verifica se os arquivo(s) ou diretórios que estão usados na operação tem o mesmo UID (proprietário) do script que está sendo executado.

Nota: esta função não é implementada na plataforma Windows

Veja Também

  • chgrp() - Modifica o grupo do arquivo
  • lchown() - Changes user ownership of symlink
  • chown() - Modifica o dono do arquivo
  • chmod() - Modifica as permissões do arquivo



add a note add a note User Contributed Notes
lchgrp
There are no user contributed notes for this page.

lchown> <is_writeable
Last updated: Fri, 06 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites