PHP chown() 函数

PHP 教程 · 2019-01-24 17:44:05

定义和用法

chown() 函数改变指定文件的所有者。

如果成功则返回 TRUE,如果失败则返回 FALSE。

语法


chown(file,owner)


参数 描述
file 必需。规定要检查的文件。
owner 必需。规定新的所有者。可以是用户名或用户的 ID。

实例


<?php
chown("test.txt","charles")
?> 


点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Web Operations

Web Operations

John Allspaw、Jesse Robbins / O'Reilly Media / 2010-6-28 / USD 39.99

A web application involves many specialists, but it takes people in web ops to ensure that everything works together throughout an application's lifetime. It's the expertise you need when your start-u......一起来看看 《Web Operations》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具