Home  >  Article  >  php教程  >  php chown 函数

php chown 函数

WBOY
WBOYOriginal
2016-06-13 11:16:531620browse

定义和用法该chown ( )函数是用来改变指定文件的权限。 在返回TRUE和FALSE成功的失败。 语法chown(file,owner)  

定义和用法
该chown ( )函数是用来改变指定文件的权限。

在返回TRUE和FALSE成功的失败。

语法

chown(file,owner)

		Parameter
Description
file 必需的。指定的检查文件
owner 必需的。指定新的所有者。可以是用户名或用户ID 。
我们来看个chown简单的例子吧。

<!--?phpchown("test.txt","charles")?-->
 
好了教程就完成了。转请注明来自www.111cn.cn/phper/php.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn