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

search for in the

link> <lchgrp
Last updated: Fri, 06 Nov 2009

view this page in

lchown

(PHP 5 >= 5.1.2)

lchownChanges user ownership of symlink

Descrição

bool lchown ( string $filename , mixed $user )

Attempts to change the owner of the symlink filename to user user .

Only the superuser may change the owner of a symlink.

Parâmetros

filename

Path to the file.

user

User name or number.

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em falhas.

Exemplos

Exemplo #1 Changing the owner of a symbolic link

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

lchown($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

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



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

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