How To Get Hard Disk Serial Number With Php On Localhost
is there a way i can get hard disk serial number or machine serial number with php or javascript on localhost ?? we can get it with following command in cmd wmic DISKDRIVE GET Seri
Solution 1:
You can of course use
shell_exec('wmic DISKDRIVE GET SerialNumber 2>&1')
or
shell_exec('wmic bios get serialnumber 2>&1')
if wmic
is installed on server and your PHP has permission to run it.
The '2>&1'
part is used from the suggestion here.
Solution 2:
impossblie. Nothing can break the browser sandbox, otherwize it will be a big security problem.
The only possibility is via ActiveX , but still need to signature and change the IE settings. (no cross platform, not cross browser)
Post a Comment for "How To Get Hard Disk Serial Number With Php On Localhost"