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, 07 Jun 2013

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 întoarse

Î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 - [0 notes]
There are no user contributed notes for this page.

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