I wonder if there’s any scripts/programs out there that lets the me post the temperature of i.e the CPU on the web?
All replies are deeply appreciated
Regards
-Anagram
I wonder if there’s any scripts/programs out there that lets the me post the temperature of i.e the CPU on the web?
All replies are deeply appreciated
Regards
-Anagram
grr, nobody who knows?
PHP cannot directly access that sort of information. if you had a third-party app that dumped the CPU temp to stout then you could read that and display it.
It’s unclear as well if you want to see the server or clients CPU temperature
to see the the cpu temp (of the machine PHP is running on) you could parse the output of some external program, or maybe just use pass through if you don’t need custom output. For linux you could try lm_sensors, you could then also get fan speed etc too.
Take a look at www.coolmon.org, it might help
$temp = passthru('/usr/bin/systemtempprogram');
quick note that passthru ‘does exactly as what it says on the tin’ and has prototype
void passthru ( string command [, int &return_var])
things like exec return the output.
exec('/usr/bin/systemtempprogram', $temp);
Thanks for all the replies. Coolmon looks just right for the task.
Again, thanks for the help.