proggybilly
Programmer
I am trying to put together a page that displays different information about the system. One of the commands I want to run is hdparm so that I can gather the hard drive serial number. My code looks like this:
But I get nothing when I pull up the page to display.
Any help is greatly appreciated
Code:
$hd = system("hdparm -I /dev/sda");
echo $hd;
But I get nothing when I pull up the page to display.
Any help is greatly appreciated