| | |
Uptime
![]() |
•
•
Join Date: May 2003
Posts: 107
Reputation:
Solved Threads: 0
I created this into a cgi file
Now I want that on my website.. how do I create the html to show it on my index.htm instead of having another window poping up showing the uptime.cgi
•
•
•
•
#!/usr/bin/perl
#
# sload - current server load
#
print "Content-type: text/html\n\n";
print <<EOM;
<META HTTP-EQUIV="Refresh" CONTENT=15>
<TITLE> $ENV{SERVER_NAME} HTTPD Load </TITLE>
<H2> Current load average of
<A HREF=/>$ENV{SERVER_NAME}</A><HR></H2>
EOM
print `uptime`;
print "<P>";
Last edited by root; Dec 10th, 2003 at 4:10 am.
Open your mind, or shut your mouth.
Yep, but remember that it must be a PHP file then if you want to use PHP (unless you use frames again, which I highly dislike personally :p)
You should be able to cross over into a small flash button or half banner and embed that code...I think...not sure on that.
My Home Away from Home: Yet Another Linux Blog
![]() |
Similar Threads
- Maiahost 99.9% Uptime, Reliable Cpanel Hosting, Fast servers, CMS hositng (Web Hosting Deals)
- 24/7 support | 99.9% uptime | PHP5 | 20% off all plans!! (Web Hosting Deals)
- Managed Dedicated Servers starting at $99/month! FREE OS Reloads/100% Network Uptime (Web Hosting Deals)
- 99.9% Uptime, Reliable Cpanel Hosting, Fast servers, Great support 24/7 (Web Hosting Deals)
- [UK] Shared/Reseller webhosting 24/7 Support 99.9% uptime Guarantee (Web Hosting Deals)
- High speed servers with 99.9% SLA uptime guaranteed! (Web Hosting Deals)
- any way to check up on hosts uptime garantee (Windows Servers and IIS)
Other Threads in the Perl Forum
- Previous Thread: Open HTML Page
- Next Thread: Questions you'd like to ask Larry Wall the creator of Perl
| Thread Tools | Search this Thread |





