位置: - 正文

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

编辑:rootadmin
link

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

文章相关热门搜索词:php linq,php link,php link指令,php linq,php symlink,php link指令,php link指令,phpunlink,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4, PHP 5)

link — 建立一个硬连接

说明 bool link ( string $target , string $link )

link() 建立一个硬连接。

参数

target

要链接的目标。

link

链接的名称。

返回值 PHP:link()的用法_Filesystem函数(php link指令)

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

注释

Note: Windows下:该功能需要以 elevated 模式运行,或者关闭 UAC。

更新日志

版本 说明 5.3.0 该功能在 Windows 平台下开始有效(Vista、 Server 或更高版本)。

范例

Example #1 Creating a simple hard link

<?php$target='source.ext';//Thisisthefilethatalreadyexists$link='newfile.ext';//Thisthefilenamethatyouwanttolinkittolink($target,$link);?>

注释

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

参见

symlink() - 建立符号连接 readlink() - 返回符号连接指向的目标 linkinfo() - 获取一个连接的信息

PHP:lchgrp()的用法_Filesystem函数 lchgrp(PHP5=5.1.2)lchgrpChangesgroupownershipofsymlink说明boollchgrp(string$filename,mixed$group)Attemptstochangethegroupofthesymlinkfilenametogroup.Onlythesuperusermaychangethegroupofasymlinkarbitr

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()。

本文链接地址:https://www.jiuchutong.com/biancheng/285194.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/biancheng/285195.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

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