Welcome to Dream.In.Code
Become a PHP Expert!

Join 149,728 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,317 people online right now. Registration is fast and FREE... Join Now!




Checking CPU usage

 
Reply to this topicStart new topic

Checking CPU usage

BetaWar
5 Feb, 2007 - 04:32 PM
Post #1

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,293



Thanked: 101 times
Dream Kudos: 1275
My Contributions
I am wondering if there is any way to use php and check the server's CPU usage? I would think that there should be a way but I can't find one when doing some searches.
User is offlineProfile CardPM
+Quote Post

snoj
RE: Checking CPU Usage
5 Feb, 2007 - 05:46 PM
Post #2

Fell off the face of the earth
Group Icon

Joined: 31 Mar, 2003
Posts: 3,325



Thanked: 9 times
Dream Kudos: 750
My Contributions
I don't believe you can to it natively in PHP. However you could use outside applications for this purpose.

I believe ps on linux can give you that info. I don't know of a windows equivalent.
User is offlineProfile CardPM
+Quote Post

skyhawk133
RE: Checking CPU Usage
5 Feb, 2007 - 05:58 PM
Post #3

Head DIC Head
Group Icon

Joined: 17 Mar, 2001
Posts: 15,262



Thanked: 61 times
Dream Kudos: 1650
Expert In: Web Development

My Contributions
http://phpsysinfo.sourceforge.net/

wink2.gif
User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Checking CPU Usage
5 Feb, 2007 - 09:43 PM
Post #4

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,293



Thanked: 101 times
Dream Kudos: 1275
My Contributions
Nice thanks.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 05:07AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month