本文整理汇总了PHP中filesystem::getfinfo方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::getfinfo方法的具体用法?PHP filesystem::getfinfo怎么用?PHP filesystem::getfinfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filesystem
的用法示例。
在下文中一共展示了filesystem::getfinfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
}
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";
echo ($perms = $filesystem->getperms()) == false ? "[????]" : "[{$perms}]";
echo "<a href=\"./file.php?path=" . urlencode($tmp) . "\">" . ___basename($tmp) . "</a>(" . ___filesize($iget['size']) . ")\n";
echo "<br />\n";
echo "<a href=\"./dget.php?path=" . urlencode($tmp) . "\">下载</a>|<a href=\"./view.php?path=" . urlencode($tmp) . "\">查看</a>|<a href=\"./editor.php?path=" . urlencode($tmp) . "\">编辑</a>|<a href=\"./rename.php?path=" . urlencode($tmp) . "\">命名</a>|<a href=\"./autocp.php?path=" . urlencode($tmp) . "\">复件</a>|<a href=\"./autopk.php?path=" . urlencode($tmp) . "\">压缩</a>\n";
if (is_link($tmp)) {
echo "<br />\n链接指向 : " . readlink($tmp) . "\n";
}
echo ($finfo = $filesystem->getfinfo()) != false ? "\n<br />\n档案信息 : {$finfo}\n" : null;
echo "</div>\n";
}
}
if (count($data[2]) != 0) {
echo "\n<div class=\"like\">未知列表</div>\n";
foreach ($data[2] as $tmp) {
$filesystem->chpath($tmp);
echo "<div class=\"love\">\n";
echo "<input type=\"checkbox\" name=\"flist[]\" value=\"" . urlencode($tmp) . "\" {$select}/>\n";
if (is_link($tmp)) {
echo "[Link]";
}
echo ($perms = $filesystem->getperms()) == false ? "[????]" : "[{$perms}]";
echo "{$tmp}\n";
echo "</div>\n";
示例2: urlencode
if ($mime = ___getmime($tmp, 'png:jpg:gif:bmp:zip')) {
if ($mime == 'application/zip') {
echo "<a href=\"./unzip.php?path=" . urlencode($tmp) . "\">解压</a>";
} else {
echo "<a href=\"./dget.php?mime=" . urlencode($mime) . "&path=" . urlencode($tmp) . "\">打开</a>";
}
} else {
echo "<a href=\"./view.php?path=" . urlencode($tmp) . "\">查看</a>";
}
echo "|<a href=\"./editor.php?path=" . urlencode($tmp) . "\">编辑</a>|<a href=\"./rename.php?path=" . urlencode($tmp) . "\">命名</a>|<a href=\"./autocp.php?path=" . urlencode($tmp) . "\">复件</a>|<a href=\"./autopk.php?path=" . urlencode($tmp) . "\">压缩</a>\n";
if (is_link($tmp)) {
echo "<br />\n链接指向 : " . readlink($tmp) . "\n";
}
//echo "创建时间:".date("Y-m-d H:i:s",filectime("test"));
//echo "最后访问时间:".date("Y-m-d h:i:s",fileatime($path))."<br>";
if ($finfo = $filesystem->getfinfo()) {
echo "\n<br />\n档案信息 : {$finfo}\n";
}
echo "</div>\n";
}
}
if (count($data[2]) != 0) {
echo "\n<div class=\"like\">未知列表</div>\n";
foreach ($data[2] as $tmp) {
$filesystem->chpath($tmp);
echo "<div class=\"love\">\n";
echo "<input type=\"checkbox\" name=\"flist[]\" value=\"" . urlencode($tmp) . "\" {$select}/>\n";
if (is_link($tmp)) {
echo "[Link]";
}
echo ($perms = $filesystem->getperms()) == false ? "[????]" : "[{$perms}]";
示例3: gmdate
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()) {
echo "档案信息:{$finfo}\n";
}
echo "</div>\n";
echo "<div class=\"like\">\n";
echo "解压<a href=\"./dlym.php?new&path=" . urlencode(dirname($path)) . "&multiple=unpackdir&getcwd=" . urlencode($path) . "\">目标目录</a>\n";
echo "</div>\n";
echo "<div class=\"love\">\n";
echo "<form action=\"unpack.php\" method=\"GET\">\n";
echo "<input type=\"hidden\" name=\"path\" value=\"{$path}\" />";
if (!isset($_GET['unpackdir'])) {
echo "目标:<input type=\"text\" name=\"unpackdir\" value=\"" . dirname($path) . "\" /><br />\n";
} else {
echo "目标:<input type=\"text\" name=\"unpackdir\" value=\"" . trim($_GET['unpackdir']) . "\" /><br />\n";
}
echo "类型:<input type=\"radio\" name=\"type\" value=\"gz\" />GZ<input type=\"radio\" name=\"type\" value=\"bz2\" />BZ2<input type=\"radio\" name=\"type\" value=\"zip\" checked />ZIP<input type=\"radio\" name=\"type\" value=\"tar\" />TAR<br />\n";