PHP Linux disk Space

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
tahirgull
Cadet
Posts: 2
Joined: Wed Sep 20, 2006 4:40 pm
Location: Islamabad
Contact:

PHP Linux disk Space

Postby tahirgull » Tue Nov 07, 2006 3:19 pm

Salam Everybody

I want to make a page in php from where i can check the space of disk.
(in linux Machine)
can anybody guide me.

Thanks
:evil:
Sardar Tahir Shafique

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Tue Nov 07, 2006 3:46 pm

Code: Select all

<html>
<head>
<title>df</title>
</head>

<body>
<pre><tt>
<?php system("df -k"); ?>
</tt></pre>

</body>
</html>

tahirgull
Cadet
Posts: 2
Joined: Wed Sep 20, 2006 4:40 pm
Location: Islamabad
Contact:

Postby tahirgull » Thu Nov 09, 2006 11:53 am

Thanks
Its working fine.

Thanks a Lot
Sardar Tahir Shafique


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests