PHPBuilder - Disk Space Finder



RSS Twitter
Snippets Math Functions

Disk Space Finder

by: Dustin G.
|
December 23, 2002

Version: 1.0

Type: Full Script

Category: Math Functions

License: Other

Description: This Script Tells you your Remaining Disk Space Out of Your Total Diskspace!



<html>
<body>
<?php
$disktotal = Disk_Total_Space("C:/");
$disktotalKB = ($disktotal / 1000);
$disktotalMB = ($disktotalKB / 1000);
$disktotalGB = ($disktotalMB / 1000);
$diskspace = Disk_Free_Space("C:/");
$diskspaceKB = ($diskspace / 1000);
$diskspaceMB = ($diskspaceKB / 1000);
$diskspaceGB = ($diskspaceMB / 1000);
print("You Have ");
?>
<font color="red">
<?php
print($diskspaceGB);
?>
</font>
<?php
print(" GigaBites On Your C:/ Drive");
print("...Out of")
?>
<font color="red">
<?php
print($disktotalGB);
?>
</font>
<?php
print(" GigaBites!")
?>

</body>
</html>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Dustin G.

Comment:



Comment:

(Maximum characters: 1200). You have characters left.