Page 1 of 1

Showing various system values

Posted: Tue Aug 23, 2005 9:41 am
by AbyssUnderground
Hi,


does anyone know how to display system values such as CPU Temperature, Fan Speeds and voltages etc? Im not sure if this is even possible with PHP but it would make my day if someone could post some code or links on how I can do this.

I run both php4 and php5 so no worries about which version its for.

Thanks in advance.

Posted: Tue Aug 23, 2005 2:53 pm
by AbyssUnderground
I take it no one has any idea?

Posted: Tue Aug 23, 2005 2:58 pm
by Ambush Commander
PHP does not have an API for these sorts of things. You'd have to have PHP manipulate whatever exe files that do have access to these environment variables via shell_exec and the like.

Posted: Tue Aug 23, 2005 5:44 pm
by timvw
If you are running *nix you might want to check the files in /proc ... So you only need to read them (and grab the things that interest you).

In a windows environment you probably would need an extension like moo.dll to get those informations..


http://sourceforge.net/projects/phpsysinfo might inspire you ;)