Is it possible to get the hardware information with php or javascript?

前端 未结 6 1467
孤街浪徒
孤街浪徒 2021-01-29 16:32

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

6条回答
  •  梦毁少年i
    2021-01-29 16:52

    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.

提交回复
热议问题