Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-22-2005, 03:24 AM server load script
Junior Talker

Posts: 3
Trades: 0
does anyone know of a script so that i can display my server's load on a page? i was looking for something like what is on this site http://www.sxc.hu/
cpellizzi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-22-2005, 08:56 AM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
i dont think that is possible if you have a shared hosting enviroment. as it is more easily done with a dedicated. who ever you host with should point you into the right direction. as i know with running a uptime script i have to have cpanel cron job every 15 - 30 min or so and put it into a file for my website to understand it as i cannot access the httpdid.conf file or what ever it is. but check with a host to see if such a thing is allowed
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 06-22-2005, 05:22 PM
Junior Talker

Posts: 3
Trades: 0
i host my own site from my home, so i have full access to the server. is it possible with perl? i have a small cgi script that will do it, but it is not a status bar like on sxc.hu.

Code:
#!/usr/bin/perl --
print "content-type:text/html\n\n";
 
my $html = `uptime`;
$html =~ s/\n+//g;
if ($ENV{QUERY_STRING} =~ /js/){ print qq~uptime=('$html'); document.write(uptime);~; }
else{ print $html; }
exit;
cpellizzi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to server load script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11318 seconds with 12 queries