PHP取得ファイル権限関数
775 ワード
/*
* substr
* base_convert
* fileperms
*/
//
function getChmod($filepath){
return substr(base_convert(@fileperms($filepath),10,8),-4);
}
/*
* substr
* base_convert
* fileperms
*/
//
function getChmod($filepath){
return substr(base_convert(@fileperms($filepath),10,8),-4);
}