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, 20 Nov 2009

view this page in

lchown

(PHP 5 >= 5.1.2)

lchownChanges user ownership of symlink

Descrierea

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.

Parametri

filename

Path to the file.

user

User name or number.

Valorile întroarse

Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eşecului.

Exemple

Example #1 Changing the owner of a symbolic link

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

lchown($link8);
?>

Note

Notă: Această funcţie nu va lucra cu fişiere la distanţă, deoarece fişierul care trebuie să fie examinat trebuie să fie accesibil prin intermediul sistemului de fişiere al serverului.

Notă: Când este activat modul securizat, PHP verifică dacă fişierele şi directoarele cu care se va opera au acelaşi UID (proprietar) ca şi script-ul care se execută.

Notă: Această funcţie nu este implementată pe platformele Windows.

Vedeţi de asemenea



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

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