function_dskspace.php
来自「wap 程序 手器电脑通用」· PHP 代码 · 共 27 行
PHP
27 行
<?
/**
*
* @package wappyCULT: wap community script
* @version 1.00 2006/09/12 21:53:27 wappy
* @copyright (c) 2004-2006 wappyCULT
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
*/
function dskspace ($dir)
{
$s = stat ($dir);
$space = $s ["blocks"]* 512;
if (is_dir ($dir))
{
$dh = opendir ($dir);
while (($file = readdir ($dh)) !==false)
if ($file != "." and $file != "..")
$space += dskspace ($dir . "/" . $file);
closedir ($dh);
}
return $space;
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?