位置: 编程技术 - 正文

PHP:lchgrp()的用法_Filesystem函数(php cgi)

编辑:rootadmin
lchgrp

推荐整理分享PHP:lchgrp()的用法_Filesystem函数(php cgi),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php中??,php中??,php cgi,php ci,php r,php chr(),php cgi,php curd,内容如对您有帮助,希望把文章链接给更多的朋友!

(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 PHP:lchgrp()的用法_Filesystem函数(php cgi)

The group specified by name or number.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

范例

Example #1 Changing the group of a symbolic link

<?php$target='output.php';$link='output.html';symlink($target,$link);lchgrp($link,8);?>

注释

Note: 此函数不能作用于远程文件,被检查的文件必须是可通过服务器的文件系统访问的。

Note: 当启用安全模式时,PHP 会检查被操作的文件或目录是否与被执行的脚本有相同的 UID(所有者)。

Note: 此函数未在 Windows 平台下实现。

参见

chgrp() - 改变文件所属的组 lchown() - Changes user ownership of symlink chown() - 改变文件的所有者 chmod() - 改变文件模式

PHP:is_writable()的用法_Filesystem函数 is_writable(PHP4,PHP5)is_writable判断给定的文件名是否可写说明boolis_writable(string$filename)如果文件存在并且可写则返回TRUE。filename参数可以是一个允许进行是否

PHP:is_writeable()的用法_Filesystem函数 is_writeable(PHP4,PHP5)is_writeableis_writable()的别名说明此函数是该函数的别名:is_writable()。

PHP:is_link()的用法_Filesystem函数 is_link(PHP4,PHP5)is_link判断给定文件名是否为一个符号连接说明boolis_link(string$filename)判断给定文件名是否为一个符号连接。参数filename文件的路径。返回值

本文链接地址:https://www.jiuchutong.com/biancheng/285195.html 转载请保留说明!

上一篇:PHP:link()的用法_Filesystem函数(php link指令)

下一篇:PHP:is_writable()的用法_Filesystem函数(php is_writable)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络