PHP fileowner() 函数

PHP 教程 · 2019-01-24 23:27:20

定义和用法

fileowner() 函数返回指定文件的用户 ID(所有者)。

如果成功,该函数返回用户 ID。如果失败,则返回 FALSE。

语法


fileowner(filename)


参数 描述
filename 必需。规定要检查的文件。

提示和注释

注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。

注释:该函数不能在 Windows 系统上运行。

提示:请使用 posix_getpwuid() 来把用户 ID 转换为用户名。

实例


<?php
echo fileowner("test.txt");
?> 


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

查看所有标签

The Book of CSS3

The Book of CSS3

Peter Gasston / No Starch Press / 2011-5-13 / USD 34.95

CSS3 is the technology behind most of the eye-catching visuals on the Web today, but the official documentation can be dry and hard to follow. Luckily, The Book of CSS3 distills the heady technical la......一起来看看 《The Book of CSS3》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具