lchown

(PHP 5 >= 5.1.2, PHP 7)

lchownChanges user ownership of symlink

Опис

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.

Параметри

filename

Path to the file.

user

User name or number.

Значення, що повертаються

Повертає TRUE в успішному випадку або FALSE в разі помилки.

Приклади

Приклад #1 Changing the owner of a symbolic link

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

lchown($link8);
?>

Примітки

Зауваження: Ця функція незастосовна для роботи з віддаленими файлами, оскільки файл повинен бути доступним через файлову систему сервера.

Зауваження: When safe mode is enabled, PHP checks whether the files or directories being operated upon have the same UID (owner) as the script that is being executed.

Зауваження: Для Windows-платформ ця функція нереалізована.

Прогляньте Також

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top