I am unable to run the below command in PHP file, by browsing the URL http://localhost/hddinfo.php
, the status is 25, output array is empty.
exec ("hdparm -i /dev/hda", $output, $status);
But same will execute from Linux command line and shows output: php hddinfo.php
My requirement is to get the Hard Disk Serial Number on Linux box through my PHP code.
Quick help is much appriciated