PHP头条
热点:

PHP获取文件权限函数介绍


代码如下:
/*
* substr 返回字符串的子串
* base_convert 在任意进制之间转换数字
* fileperms 取得文件的权限
*/
// 获取权限
function getChmod($filepath){
return substr(base_convert(@fileperms($filepath),10,8),-4);
}

www.phpzy.comtrue/php/17799.htmlTechArticlePHP获取文件权限函数介绍 代码如下: /* * substr 返回字符串的子串 * base_convert 在任意进制之间转换数字 * fileperms 取得文件的权限 */ // 获取权限 function getChmod($filepath){ return substr(base_conv...

相关文章

PHP之友评论

今天推荐