Forum und email

lchgrp

(PHP 5 >= 5.1.2)

lchgrp — Changes group ownership of symlink

說明

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.

參數

filename

Path to the symlink.

group

The group specified by name or number.

Return值

如果成功則回傳 TRUE,失敗則回傳 FALSE

註釋

Note: 本函式不能作用於遠端檔案,被檢查的檔案必須可經由伺服器的檔案系統存取。

Note: 安全模式被啟用時,PHP 將檢查被操作的檔案或者目錄是否與正在執行的腳本有相同的 UID(擁有者)。