php disk_free_space 返回目录可用空间
时间:2021-07-18 08:24:27|栏目:PHP代码|点击: 次
用法
disk_free_space($path);
注: 本函数不能作用于远程文件,被检查的文件必须通过服务器的文件系统访问。
本函数功能
本函数将根据相应的文件系统或磁盘分区返回可用的字节数
好了实例是很简单我们就来看看实例吧.
<?php
$jb51net = disk_free_space("/");
echo $jb51net;
?>
<?php
// $df 包含根目录下可用的字节数
$df = disk_free_space("/");
//在 Windows 下:
disk_free_space("C:");
disk_free_space("D:");
?>
返回的是文件系统或磁盘分区返回可用的字节数
disk_free_space($path);
注: 本函数不能作用于远程文件,被检查的文件必须通过服务器的文件系统访问。
本函数功能
本函数将根据相应的文件系统或磁盘分区返回可用的字节数
好了实例是很简单我们就来看看实例吧.
复制代码 代码如下:
<?php
$jb51net = disk_free_space("/");
echo $jb51net;
?>
复制代码 代码如下:
<?php
// $df 包含根目录下可用的字节数
$df = disk_free_space("/");
//在 Windows 下:
disk_free_space("C:");
disk_free_space("D:");
?>
返回的是文件系统或磁盘分区返回可用的字节数
上一篇:PHP验证类的封装与使用方法详解
栏 目:PHP代码
本文标题:php disk_free_space 返回目录可用空间
本文地址:http://www.codeinn.net/misctech/158564.html






