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

search for in the

link> <lchgrp
[edit] Last updated: Fri, 17 May 2013

view this page in

lchown

(PHP 5 >= 5.1.2)

lchownChanges user ownership of symlink

Descrizione

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.

Elenco dei parametri

filename

Path to the file.

user

User name or number.

Valori restituiti

Restituisce TRUE in caso di successo, FALSE in caso di fallimento.

Esempi

Example #1 Changing the owner of a symbolic link

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

lchown($link8);
?>

Note

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.

Nota: Questa funzione non è implementata sulle piattaforme Windows.

Vedere anche:

  • chown() - Cambia il proprietario del file
  • lchgrp() - Changes group ownership of symlink
  • chgrp() - Cambia il gruppo del file
  • chmod() - Cambia le impostazioni del file



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

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