Showing various system values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AbyssUnderground
Forum Newbie
Posts: 3
Joined: Tue Aug 23, 2005 9:38 am

Showing various system values

Post 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.
AbyssUnderground
Forum Newbie
Posts: 3
Joined: Tue Aug 23, 2005 9:38 am

Post by AbyssUnderground »

I take it no one has any idea?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;)
Post Reply