PHP Linux disk Space

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

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
tahirgull
Cadet
 
Posts: 2
Joined: Wed Sep 20, 2006 4:40 pm
WLM: tahir_shafique@hotmail.com
Location: Islamabad

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>
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

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

Thanks
Its working fine.

Thanks a Lot
Sardar Tahir Shafique
tahirgull
Cadet
 
Posts: 2
Joined: Wed Sep 20, 2006 4:40 pm
WLM: tahir_shafique@hotmail.com
Location: Islamabad


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron