Re: [PHP] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Sorry about that . Its my first post, :(
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Cameron Metzke ([EMAIL PROTECTED]):
> > Hi there,
> > I have been trying to make a simple monitor script using fsockopen. here
it
> > is
> > --Start Code-
> >
> >  > error_reporting(0);
> > include 'config.php';
> > $domain = $_POST['domain'];
> >
> > [... unneeded code ...]
> >
> >  > // Http port connection
> >  $http = fsockopen($domain, $httpport, $errno, $errstr, 30);
> >  if (!$http)
> >  {
> >
> >  [.. (130 lines) more unneeded  code  ..]
> >
> >
> > END CODE
> >
> > all seems to work ok , except that the http and smtp ports always come
up ok
> > even when the domain doesnt exist. I am thinking mabey it has something
to
> > do with verisign playing with the .com names lattley?. any ideas and
help
> > would be appreciated :)
>
> It seems that you've already answered your question.
>
> 
> and playing is a rather nice term; I'd rather say something like
> destroying, stealing, monopolizing, betraying, untrusting,
> "stupidly trying to make the 'internet' more friendly by taking
> advantage of certain organizations that weren't on the ball" with
> the .com names.
> 
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] fsockopen server monitor

2003-09-28 Thread Curt Zirzow
* Thus wrote Cameron Metzke ([EMAIL PROTECTED]):
> Hi there,
> I have been trying to make a simple monitor script using fsockopen. here it
> is
> --Start Code-
> 
>  error_reporting(0);
> include 'config.php';
> $domain = $_POST['domain'];
>
> [... unneeded code ...]
>
>  // Http port connection
>  $http = fsockopen($domain, $httpport, $errno, $errstr, 30);
>  if (!$http)
>  {
>
>  [.. (130 lines) more unneeded  code  ..]
>
> 
> END CODE
> 
> all seems to work ok , except that the http and smtp ports always come up ok
> even when the domain doesnt exist. I am thinking mabey it has something to
> do with verisign playing with the .com names lattley?. any ideas and help
> would be appreciated :)

It seems that you've already answered your question.


and playing is a rather nice term; I'd rather say something like
destroying, stealing, monopolizing, betraying, untrusting,
"stupidly trying to make the 'internet' more friendly by taking
advantage of certain organizations that weren't on the ball" with
the .com names.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-




monitor script






  
HTTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
FTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
POP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
IMAP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SMTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SSH Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
Bogus Server :
");
 }

 else
 {
 echo ("");
 }
?>

  





END CODE

all seems to work ok , except that the http and smtp ports always come up ok
even when the domain doesnt exist. I am thinking mabey it has something to
do with verisign playing with the .com names lattley?. any ideas and help
would be appreciated :)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] fsockopen server monitor

2003-09-28 Thread Cameron Metzke
Hi there,
I have been trying to make a simple monitor script using fsockopen. here it
is
--Start Code-




monitor script






  
HTTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
FTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
POP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
IMAP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SMTP Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
SSH Server :
");
 }

 else
 {
 echo ("");
 }
?>

  
  
Bogus Server :
");
 }

 else
 {
 echo ("");
 }
?>

  





END CODE

all seems to work ok , except that the http and smtp ports always come up ok
even when the domain doesnt exist. I am thinking mabey it has something to
do with verisign playing with the .com names lattley?. any ideas and help
would be appreciated :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php