disk_free_space

disk_free_space

(PHP 4 >= 4.1.0, PHP 5)

disk_free_space -- Returns available space in directory

Description

float disk_free_space ( string directory )

Given a string containing a directory, this function will return the number of bytes available on the corresponding filesystem or disk partition.

Example 1. disk_free_space() example

<?php
// $df contains the number of bytes available on "/"
$df = disk_free_space("/");

// On Windows:
disk_free_space("C:");
disk_free_space("D:");
?>

Note: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.

See also disk_total_space()



Links
AN Hosting $6.95/mo
  • 250GB Diskspace
  • 2500GB Bandwidth
  • Host 20 Domains
  • PHP RoR Python CGI SSI Unlimited MySQL DB
  • Free Domain for Life
  • 30 Day Money Back
  • 99% Uptime Guarantee

Aplus.net $7.46/mo
  • 170GB Diskspace
  • 2000GB Bandwidth
  • PHP Perl Ruby C/C++ Python TCL SSI CGI
  • 2 Free Domain Names
  • DNS Management
  • 99.99% Uptime

HostMonster $5.95/mo
  • 200GB Diskspace
  • 2000GB Bandwidth
  • Host Unlimited Domains
  • SSH Access
  • SSL FTP Stats
  • CGI Ruby Perl PHP MySQL
  • Free Domain

Hosting Companies


Partners


Quick Search
Platform

Price

Diskspace

Bandwidth


 Advance Search
 Show All Companies


Reference & Manual

If you are looking for dedicated servers, look no further. HostPulse.com is a site devoted to help web users find cheap web hosting and dedicated servers.


Free Sitemap Generator Host Login/Register | Contact Us | Terms | Add Links
Thumbnails by Thumbshots.org © 2002-2008 CheapHostDir.com