PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fclose> <disk_total_space
Last updated: Sun, 25 Nov 2007

view this page in

diskfreespace

(PHP 4, PHP 5)

diskfreespace — 디렉토리의 사용가능한 공간을 반환합니다.

Description

float diskfreespace ( string $directory )

이 함수는 디렉토리를 포함한 문자열이 주어졌을때 파일시스템이나 디스크파티션의 사용가능한 공간을 바이트로 반환합니다.

Example#1 diskfreespace()예문

$df = diskfreespace("/"); // $df 는 "/"에서 사용가능한 공간의 바이트 크기를 보여줍니다.



add a note add a note User Contributed Notes
diskfreespace
27-Oct-2005 05:17
<?php
//On windows:
$hdwinC = disk_free_space("C:");
$hdwinD = disk_free_space("D:");
echo
"Diskspace left on C: $hdwinC<br>";
echo
"Diskspace left on D: $hdwinD";

//Linux:
$hdGnu = disk_free_space("/");
echo
"Diskspace left on / $hdGnu";
?>

fclose> <disk_total_space
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites