get_current_user () 擷取當前PHP指令碼的所有者的名稱
substr(sprintf("%o",fileperms(getcwd())),-4) 擷取當前檔案/目錄許可權
scandir(getcwd()) 擷取目前的目錄所有檔案/目錄
print_r(posix_getpwuid(10000)); 擷取某uid使用者資訊
chmod("test.txt",0777); 修改指定檔案 或目錄許可權
fileowner() 函數返迴文件的所有者。
php_uname() 擷取系統類別型及版本
getmyuid() 擷取PHP指令碼頁面所有者的UID號碼
print_r (ini_get_all()); 擷取所有配置選項
print_r (php_ini_scanned_files()); 返回設定檔目錄下的設定檔列表
$uid = @posix_getpwuid(@posix_geteuid()); 擷取當前用UID 資訊
$gid = @posix_getgrgid(@posix_getegid()); 擷取當前組GID 資訊
$user = $uid['name']; 提取使用者資訊數組中 name
$uid = $uid['uid']; 提取目前使用者資訊數組中 uid
$group = $gid['name']; 提取當前組資訊數組中 name
$gid = $gid['gid']; 提取當前組資訊中 gid
摘自:lostwolf's Blog
http://www.bkjia.com/PHPjc/478597.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478597.htmlTechArticleget_current_user () 擷取當前PHP指令碼的所有者的名稱 substr(sprintf(%o,fileperms(getcwd())),-4) 擷取當前檔案/目錄許可權 scandir(getcwd()) 擷取目前的目錄所有...