php disk_free_space 函数与disk_total_space 函数教程,第一个函数是指函数返回的空间,以字节为单位,在指定的目录,而disk_total_space 函数返回的总空间
该disk_free_space ( )函数返回的自由空间,以字节为单位,在指定的目录。
<span style="color: #008080">disk_free_space</span>(directory)
我们来看看disk_free_space实例吧。
<?<span style="color: #000000">php
</span><span style="color: #008000">//</span><span style="color: #008000"> by http://www.manongjc.com/article/1324.html </span>
<span style="color: #0000ff">echo</span> <span style="color: #008080">disk_free_space</span>("C:"<span style="color: #000000">);
</span>?> 输出你硬盘大小。
12312312313
下面再来看看disk_total_space函数的教程。
立即学习“PHP免费学习笔记(深入)”;
该disk_total_space ( )函数返回的总空间,以字节为单位,在指定的目录。
<span style="color: #008080">disk_total_space</span>(directory)
实例:
<?<span style="color: #000000">php
</span><span style="color: #008000">//</span><span style="color: #008000"> by http://www.manongjc.com/article/1324.html </span>
<span style="color: #0000ff">echo</span> <span style="color: #008080">disk_total_space</span>("C:"<span style="color: #000000">);
</span>?> 方法与disk_free_space是一样的吧。
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号