Dreamweaver TechniqueJAVA Script サンプル | CSS sample | JAVA Applet sample | Flash Sample
HTML4.0 reference | DynamicHTMLXHTML | XML sample | XSLT sample | RIKO's ASP Trial
ASP ADO リファレンス | PHP関数リファレンス | MySQL関数リファレンス

利用可能なスペースを調べる

■ 利用可能なスペースを調べる

disk_free_space関数は、指定したディレクトリに対応するファイルシステムまたはパーテーションで利用可能なサイズをバイトで返します。

数値 = disk_free_space (ディレクトリ)

また、disk_total_system関数を使うと、ファイルシステムまたはパーティション全体のサイズを調べることができます。

数値 = disk_total_space (ディレクトリ)

<?php
    $free = number_format(disk_free_space("."));
    $total = number_format(disk_total_space("."));

    header("Content-Type: text/plain; charset=EUC-JP");
    printf("空き:%sバイト\n", $free);
    printf("全体:%sバイト\n", $total);
?>

<戻る

R HOUSE | RIKO's Trial Page | Shirley's Pettit Case | Shirley's i-box | Shirley's little box

テレワークならECナビ Yahoo 楽天 LINEがデータ消費ゼロで月額500円〜!
無料ホームページ 無料のクレジットカード 海外格安航空券 海外旅行保険が無料! 海外ホテル