Re: fsockopen server monitor
| From: | Cameron Metzke | Date: | Mon, 29 Sep 2003 06:25:04 +0000 |
| Subject: | Re: fsockopen server monitor | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164200@lists.php.net to get a copy of this message | ||
Sorry about that . Its my first post, :(
"Curt Zirzow" <php-general@zirzow.dyndns.org> wrote in message
news:20030929062634.GM75870@bagend.shire...
> * Thus wrote Cameron Metzke (c_metzke@wn.com.au):
> > Hi there,
> > I have been trying to make a simple monitor script using fsockopen. here
it
> > is
> > ------Start Code-----
> >
> > <?php
> > error_reporting(0);
> > include 'config.php';
> > $domain = $_POST['domain'];
> >
> > [... unneeded code ...]
> >
> > <td width="50%"><?php
> > // 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.
>
> <rant>
> 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.
> </rant>
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."