Connecting Tech Pros Worldwide Forums | Help | Site Map

get hard disk id using php?

Familiar Sight
 
Join Date: Mar 2007
Posts: 172
#1: Mar 18 '08
Hi friends,

How to get hard disk id using php script?

Member
 
Join Date: Nov 2007
Location: Russia, Saint-Petersburg
Posts: 82
#2: Mar 18 '08

re: get hard disk id using php?


Quote:

Originally Posted by maheswaran

Hi friends,

How to get hard disk id using php script?

Use system() function:
[PHP]<?php system("uptime"); ?>

<b>System Information:</b>
<?php system("uname -a"); ?>


<b>Memory Usage (MB):</b>
<?php system("free -m"); ?>


<b>Disk Usage:</b>
<?php system("df -h"); ?>
[/PHP]

From : http://www.wwwsearchsolutions.com/server_info.php
Familiar Sight
 
Join Date: Mar 2007
Posts: 172
#3: Mar 18 '08

re: get hard disk id using php?


but it's only run in unix, i need run both windows and linux al.....
Member
 
Join Date: Nov 2007
Location: Russia, Saint-Petersburg
Posts: 82
#4: Mar 18 '08

re: get hard disk id using php?


Quote:

Originally Posted by maheswaran

but it's only run in unix, i need run both windows and linux al.....

I think this problem has *nix-olny solution.
Reply