some info please

eddy

LOMCN Veteran
Veteran
Aug 10, 2004
253
0
93
how do i go on if i wont to put on my web site if my gate are up or down

plz
 

KnightRider

Dedicated Member
Dedicated Member
Oct 30, 2003
107
1
45
you have too port scan the gate you like too check and if it connects too that port you display it up and if it does not connect make it display down

i got a small php example some were if you like to have a look at that
 

KnightRider

Dedicated Member
Dedicated Member
Oct 30, 2003
107
1
45
this is just a simple one

PHP:
/*
* File call Index.php
*/
<?php

function checkPort($host,$port)
{
	$online = @fsockopen($host, $port, $errno, $errstr, 1);

	if ($online)
		return "<font color='Green'>Online";
	else
		return "<font color='red'>Offline";
}

' This calls the function and display it
echo checkPort(ServerIP, PortToCheck);
 

KnightRider

Dedicated Member
Dedicated Member
Oct 30, 2003
107
1
45
can that be used in Index.htm

no it can not be it has too be php at the end so you will need to run a webserver that runs php if you like to use this example

(what webserver you using)
 

eddy

LOMCN Veteran
Veteran
Aug 10, 2004
253
0
93
none atm i just wonting to get my web site ready for when i buy it
 

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
I have a better script which also adds protection looking at the example it could be flooded by people pressing F5 or refreshing all the time. Mine also has a time so it won't take ages loading up if you want it i'll post here.
 

eddy

LOMCN Veteran
Veteran
Aug 10, 2004
253
0
93
I have a better script which also adds protection looking at the example it could be flooded by people pressing F5 or refreshing all the time. Mine also has a time so it won't take ages loading up if you want it i'll post here.


plz would help me out an lot as i dont know about php lol that much lol