Web Hosting Talk







View Full Version : php server status script


Mxweb
08-15-2006, 12:23 PM
hi everyone

ok so i downloaded this server status script from NexusPortal i went to edit the script but there are a few pots ont ehjre that i dont quite know are here is the ports list


$noc_http = @fsockopen($box, 80, $errno, $errstr, 4);
if (!$noc_http) {
$noc_http = "images/red.gif";
} else {
fclose($noc_http);
$noc_http = "images/green.gif";
}

$noc_panel = @fsockopen($box, $panel_port, $errno, $errstr, 4);
if (!$noc_panel) {
$noc_panel = "images/red.gif";
} else {
fclose($noc_panel);
$noc_panel = "images/green.gif";
}

$noc_bind = @fsockopen($box, 53, $errno, $errstr, 4);
if (!$noc_bind) {
$noc_bind = "images/red.gif";
} else {
fclose($noc_bind);
$noc_bind = "images/green.gif";
}

$noc_ftp = @fsockopen($box, 21, $errno, $errstr, 4);
if (!$noc_ftp) {
$noc_ftp = "images/red.gif";
} else {
fclose($noc_ftp);
$noc_ftp = "images/green.gif";
}

$noc_smtp = @fsockopen($box, 25, $errno, $errstr, 4);
if (!$noc_smtp) {
$noc_smtp = "images/red.gif";
} else {
fclose($noc_smtp);
$noc_smtp = "images/green.gif";
}

$noc_pop3 = @fsockopen($box, 110, $errno, $errstr, 4);
if (!$noc_pop3) {
$noc_pop3 = "images/red.gif";
} else {
fclose($noc_pop3);
$noc_pop3 = "images/green.gif";
}

$noc_imp = @fsockopen($box, 80, $errno, $errstr, 4);
if (!$noc_imp) {
$noc_imp = "images/red.gif";
} else {
fclose($noc_imp);
$noc_imp = "images/green.gif";
}

$httpb_imp = @fopen("$site/", "r");
if (!$httpb_imp) {
$httpb_imp = "images/red.gif";
} else {
fclose($httpb_imp);
$httpb_imp = "images/green.gif";
}


could somone plese tell me the ports that i dont know.

80= http
21= ftp
110=pop3
anmd thats all i know in that list
plesase help

Patrick
08-15-2006, 12:46 PM
21 = Ftp
25 = Smtp
53 = Dns
80 = Http
110 = Pop3

maiahost
08-15-2006, 12:52 PM
There's a list of ports at the bottom of this page:

http://www.spirit.com/Resources/ports.html

Mxweb
08-16-2006, 03:43 AM
thanks that really helped