本文整理匯總了PHP中IO::chmod方法的典型用法代碼示例。如果您正苦於以下問題:PHP IO::chmod方法的具體用法?PHP IO::chmod怎麽用?PHP IO::chmod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類IO
的用法示例。
在下文中一共展示了IO::chmod方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: implode
default:
$info['path'] = implode('/', $patharr) . '/' . $icoarr['name'];
$info['size'] = lang('template', 'property_info_size', array('fsize' => formatsize($icoarr['size']), 'size' => $icoarr['size']));
}
}
$info['username'] = $icoarr['username'];
$info['uid'] = $icoarr['uid'];
$info['fdateline'] = $icoarr['fdateline'];
}
} elseif ($do == 'chmod') {
$path = rawurldecode($_GET['path']);
if (submitcheck('chmodsubmit')) {
$son = intval($_GET['son']);
$chmod = $_GET['chmod'];
$mod = '0' . array_sum(array($chmod[8] * 4, $chmod[7] * 2, $chmod[6] * 1)) . array_sum(array($chmod[5] * 4, $chmod[4] * 2, $chmod[3] * 1)) . array_sum(array($chmod[2] * 4, $chmod[1] * 2, $chmod[0] * 1));
if ($return = IO::chmod($path, $mod, $son)) {
if ($return['error']) {
showmessage($return['error']);
}
showmessage('do_success', dreferer(), array(), array('showdialog' => 1, 'showmsg' => true, 'closetime' => 1));
}
showmessage('權限修改失敗,Windows服務器不支持此操作');
} else {
$meta = IO::getMeta($path);
$meta['name'] = getstr($meta['name'], 30);
list($owner, $group, $comm) = str_split($meta['mod'], 1);
$owner = sprintf("%b", $owner);
$comm = sprintf("%b", $comm);
$group = sprintf("%b", $group);
$chmod = array();
for ($i = 0; $i < 3; $i++) {