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

view this page in

lchgrp

(PHP 5 >= 5.1.2)

lchgrpChanges group ownership of symlink

Descrierea

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.

Parametri

filename

Path to the symlink.

group

The group specified by name or number.

Valorile întroarse

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

Exemple

Example #1 Changing the group of a symbolic link

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

lchgrp($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
lchgrp
There are no user contributed notes for this page.

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