Sedang Disiapkan

219915 Simple PHP Server Status Page

Simple PHP Server Status Page:

I have 4 servers that I need to keep watch of. I need a php page that will have the 4 server names in green when they are up and red when they are down. I just need the name to echo or print nothing fancy. It's needs to be viewable with a cellphone. That doesn't require you to do anything special. Just keep it easy.

Here's an example:

[url removed, login to view]

Code is here:

[url removed, login to view]

This script doesn't work. Well sorta. If a server is down (or off) it gets an error. I need

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

When they're up there green when they're down there red.

I need to be able to add more servers to this list so the code needs to have comments so it can be modified at a later date.

Please don't call on a file on the server to make the code work. Please try to validate that the url is working (ping?) I don't want to have random files on ever server I manage that can't be deleted/moved.

Thank you!

-Rob

Kemahiran: Semua Boleh, PHP

Lihat lebih lanjut: status, server manage, Rob, php server, manage server, status code, random page, status page, php random file name, php special, php list files, php random name, call url script, php print error, random name php, code status, php page moved, script call url, php echo print, moved url, php code example, php script echo, red status code, simple php html page, echo script php

Tentang Majikan:
( 3 ulasan ) Portland,

ID Projek: #1966148

Dianugerahkan kepada:

sesee

already done, working example in PMB.

$25 USD dalam 0 hari
(6 Ulasan)
2.6