delphi123 Posted December 4, 2007 Share Posted December 4, 2007 Hi there, Just need a general pointer - I've seen a few scripts that'll tell you how much load your server is currently under. Can anyone give me an idea how they work and how I could write a similar script? I don't know if there's just some php command that'll tell you how many server requests or whatever you've had in the last minute or something! Cheers! Link to comment https://forums.phpfreaks.com/topic/80170-general-php-server-load-script/ Share on other sites More sharing options...
trq Posted December 4, 2007 Share Posted December 4, 2007 Most of the information you'll need can be found in the Apache logs. Assuming that is, that your using Apache. Link to comment https://forums.phpfreaks.com/topic/80170-general-php-server-load-script/#findComment-406371 Share on other sites More sharing options...
delphi123 Posted December 5, 2007 Author Share Posted December 5, 2007 yep I'm using apache - so how can I extract the values in these logs to the webpage? (I'm wanting to display these values dynamically) Link to comment https://forums.phpfreaks.com/topic/80170-general-php-server-load-script/#findComment-406687 Share on other sites More sharing options...
trq Posted December 5, 2007 Share Posted December 5, 2007 Take a look at fopen and fread. Link to comment https://forums.phpfreaks.com/topic/80170-general-php-server-load-script/#findComment-406779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.