当前位置: 首页>>代码示例>>PHP>>正文


PHP filesystem::getfinfo方法代码示例

本文整理汇总了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链接指向&nbsp;:&nbsp;" . readlink($tmp) . "\n";
         }
         echo ($finfo = $filesystem->getfinfo()) != false ? "\n<br />\n档案信息&nbsp;:&nbsp;{$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";
开发者ID:simplesky,项目名称:course,代码行数:31,代码来源:index.php

示例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) . "&amp;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链接指向&nbsp;:&nbsp;" . 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档案信息&nbsp;:&nbsp;{$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}]";
开发者ID:liuguogen,项目名称:weixin,代码行数:31,代码来源:dlym.php

示例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";
开发者ID:liuguogen,项目名称:weixin,代码行数:31,代码来源:file.php


注:本文中的filesystem::getfinfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。