Re: Don't search for domains on Network Solutions...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 16, 2008 4:27 PM, Andrés Robinet <agrobinet@xxxxxxxxxxxxx> wrote:
>
> > -----Original Message-----
> > From: Daniel Brown [mailto:parasane@xxxxxxxxx]
> > Sent: Wednesday, January 16, 2008 5:06 PM
> > To: Eric Butera
> > Cc: Andrés Robinet; php php
> > Subject: Re:  Don't search for domains on Network Solutions...
> >
> > On Jan 16, 2008 2:29 PM, Eric Butera <eric.butera@xxxxxxxxx> wrote:
> > > It obviously isn't related to PHP.  I figured that most of us are in
> > > the business of making web applications for clients that are accessed
> > > through a domain at some point, so I sent it as a general warning to
> > > people.
> > >
> > > My company has recommended people to use it as a simple starting
> > point
> > > of figuring out what domain name they think they might like.   Of
> > > course we never use them for anything other than that, but I guess
> > the
> > > joke is on us in the end, right? :)
> >
> >     Eric,
> >
> >     If you're using a *nix system, try this.  I just whipped it up
> > now, so it's not going to be perfect, but it will give accurate
> > results, without risking any kind of "domain hoarding" (which is
> > ridiculous, and companies should be fined for it, in my opinion):
> >
> > <?
> >
> > if(!isset($argv[1])) {
> >         die("Usage: ".$argv[0]." domain.com\n");
> > }
> >
> > $domain = $argv[1];
> >
> > exec('`which dig` '.$domain,$ret,$err);
> >
> > if($err) {
> >         die("ERROR: ".$err."\n");
> > }
> >
> > for($i=0;$i<count($ret);$i++) {
> >         if(preg_match('/status: (.*),/Ui',$ret[$i],$status)) {
> >                 switch($status[1]) {
> >                         case "NXDOMAIN":
> >                                 echo "Domain is not registered.\n";
> >                                 break;
> >                         case "NOERROR":
> >                                 echo "Domain is registered.\n";
> >                                 break;
> >                         default:
> >                                 echo "Unknown status.\n";
> >                                 break;
> >                 }
> >         }
> > }
> > ?>
> >
> >
> > --
> > </Dan>
> >
> > Daniel P. Brown
> > Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since
> > Nineteen-Seventy-[mumble].
> >
>
> Maybe one of these classes will do the trick if you have exec disabled (like
> in most of the shared hosting enviroments), anybody tried them?
>
> http://www.phpclasses.org/searchtag/whois/by/package/tag/whois/
>
> Regards,
>
> Rob
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

His program was for CLI.

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux