开发者

How to, using PHP, get the host's hardware profile? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_运维百科 Closed 12 years ago.

How to, using PHP, get the host's hardware profile?


Your best bet is probably to use shell_exec to cat some of the data from the various /proc/* files that are commonly used on Linux/Unix systems, the key ones probably being:

  • /proc/cpuinfo
  • /proc/meminfo

For example:

echo shell_exec('cat /proc/cpuinfo/');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜