本文整理汇总了PHP中filesystem::getperms方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::getperms方法的具体用法?PHP filesystem::getperms怎么用?PHP filesystem::getperms使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filesystem
的用法示例。
在下文中一共展示了filesystem::getperms方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: urlencode
echo "<option value=\"addlist\">文件清单(加入)</option>\n";
echo "<option value=\"sendfile\">发送文件(邮箱)</option>\n";
if (function_exists("shell_exec")) {
echo "<option value=\"shell_exec\">终端命令(高级)</option>\n";
}
echo "</select>\n";
echo "<input type=\"submit\" value=\"执行\" />\n";
echo "(<a href=\"?path=" . urlencode($path) . "&select{$multiple}\">全选</a>|<a href=\"?path=" . urlencode($path) . "{$multiple}\">消选</a>)\n";
echo "</div>\n";
if (count($data[0]) != 0) {
echo "\n<div class=\"like\">目录列表</div>\n";
foreach ($data[0] as $tmp) {
$filesystem->chpath($tmp);
echo "<div class=\"love\">\n";
echo "<input type=\"checkbox\" name=\"flist[]\" value=\"" . urlencode($tmp) . "\" {$select}/>\n";
echo ($perms = $filesystem->getperms()) == false ? "[????]" : "[{$perms}]";
echo "<a href=\"?path=" . urlencode($tmp) . "{$multiple}\">" . ___basename($tmp) . "</a>\n";
if (is_link($tmp)) {
echo "[ Link -> " . readlink($tmp) . " ]";
}
echo "(<a href=\"./rename.php?path=" . urlencode($tmp) . "\">命名</a>|<a href=\"./autocp.php?path=" . urlencode($tmp) . "\">复件</a>)\n";
echo "</div>\n";
}
}
if (count($data[1]) != 0) {
echo "\n<div class=\"like\">文件列表</div>\n";
foreach ($data[1] as $tmp) {
$filesystem->chpath($tmp);
$iget = $filesystem->getpath();
echo "<div class=\"love\">\n";
echo "<input type=\"checkbox\" name=\"flist[]\" value=\"" . urlencode($tmp) . "\" {$select}/>\n";
示例2: header
header("Location: ./404.php");
exit;
}
$fs = new filesystem($path);
xhtml_head(___shortpath($path));
if (!($data = $fs->getpath($path))) {
echo "<div class=\"error\">\n";
echo "[<a href=\"./dlym.php?path=" . urlencode($getcwd) . "\">返回目录</a>]\n";
echo "</div>\n";
} else {
echo "<div class=\"like\">\n";
echo "<a href=\"./dlym.php?path=" . urlencode(dirname($path)) . "\">返回目录</a>文件详情\n";
echo "</div>\n";
echo "<div class=\"love\">\n";
echo "文件名称:" . ___basename($path) . "<br />\n";
if ($perms = $fs->getperms()) {
echo "文件权限:{$perms}<br />\n";
}
echo "文件大小:" . ___filesize($data['size']) . "<br />\n";
echo "所有者ID:{$data['uid']}<br />\n";
echo "所有组ID:{$data['gid']}<br />\n";
if (function_exists("mime_content_type")) {
echo "文件类型:" . mime_content_type($path) . "<br />\n";
}
echo "上次访问:" . gmdate("Y-m-d H:i:s", $data['atime'] + TIME) . "<br />\n";
echo "上次修改:" . gmdate("Y-m-d H:i:s", $data['mtime'] + TIME) . "<br />\n";
echo "上次改变:" . gmdate("Y-m-d H:i:s", $data['ctime'] + TIME) . "<br />\n";
if (is_link($path)) {
echo "链接指向:" . readlink($path) . "<br />\n";
}
if ($finfo = $fs->getfinfo()) {