Is it possible to get the hardware details with php script.Also is it possible to check whether a pen drive or something is connected to the pc via php script. So when users loa
To be clear: Javascript is always executed on client-side in the users browser. It does not have access to any hardware, mostly for security reasons. Therefore it's not possible to do that in Javascript.
PHP is executed purely on the server, and it does have (limited by some restrictions) access to the hardware of the server - but in no way it has access to the hardware of a users computer.
Therefore no, it's not possible to do that. The only way I can think of is using ActiveX plugins or a browser addon.