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

前端 未结 6 1465
孤街浪徒
孤街浪徒 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条回答
  •  北海茫月
    2021-01-29 16:44

    Yes, we can use PHP to get OS hardware information via Linfo library.

    Here is an example of the PHP script to show CPU info:

    getParser();
      var_dump($parser->getCPU());
    ?>
    

    Here is the source code of Linfo library: https://github.com/jrgp/linfo

提交回复
热议问题