How to, using PHP, get the host's hardware profile? [closed]
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/');
精彩评论