Re: PHPWhois

From: Date: Wed, 01 Sep 2004 17:04:05 +0000
Subject: Re: PHPWhois
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-51104@lists.php.net to get a copy of this message
Te devuelve un array, por lo que puedes imprimir la información que quieras.... yo utilizo: <? set_time_limit(300); $dominio = ""; if(!empty($_POST['dominio'])) { include("main.whois"); $dominio=$_POST['dominio']; $whois = new Whois($dominio); $resultado = $whois->Lookup(); } if(!empty($_POST['dominio'])) { $lineas=count($resultado['rawdata']); echo ' <table border="0" width="90%" align="center" cellspacing="0" class="recuadro"> <tr> <th> <br /> Resultado de la búsqueda para '.$dominio.' <br /><br /> </th> </tr> '; for ($i=0; $i < $lineas; $i++) { echo '<tr><td class="azul">&nbsp;'.$resultado['rawdata'][$i].'</td></tr>'; } echo ' </table> '; } ?> "Remy" <remy@metunas.co.cu> escribió en el mensaje news:20040901163139.E839322C9E@metunas.co.cu... > Hola amigos: > > Tengo un problema y no se como resolverlo. Me he bajado phpwhois-3.0.6.zip, > porque me lo recomendaron para hacer un buscador de dominios en mi pagina > WEB, me trabaja, o sea no da error, pero cuando le doy para buscar un > dominio, me retorna esto. > > > > Array > ( > [regrinfo] => Array > ( > [domain] => Array > ( > [name] => OFERHOSTING.COM > [nserver] => Array > ( > [0] => NS12.SAMESERVERS.NET > [1] => NS11.SAMESERVERS.NET > ) > > [status] => ACTIVE > [expires] => 26-aug-2005 > ) > > ) > > [regyinfo] => Array > ( > [registrar] => GO DADDY SOFTWARE, INC. > [whois] => whois.godaddy.com > [referrer] => http://registrar.godaddy.com > ) > > [rawdata] => Array > ( > [0] => The data contained in Go Daddy Software, Inc.'s WhoIs > database, > [1] => while believed by the company to be reliable, is provided > "as is" > [2] => with no guarantee or warranties regarding its accuracy. > This > [3] => information is provided for the sole purpose of assisting > you > [4] => in obtaining information about domain name registration > records. > [5] => Any use of this data for any other purpose is expressly > forbidden without the prior written > [6] => permission of Go Daddy Software, Inc. By submitting an > inquiry, > [7] => you agree to these terms of usage and limitations of > warranty. In particular, > [8] => you agree not to use this data to allow, enable, or > otherwise make possible, > [9] => dissemination or collection of this data, in part or in > its entirety, for any > [10] => purpose, such as the transmission of unsolicited > advertising and > [11] => and solicitations of any kind, including spam. You > further agree > [12] => not to use this data to enable high volume, automated or > robotic electronic > [13] => processes designed to collect or compile this data for > any purpose, > [14] => including mining this data for your own personal or > commercial purposes. > [15] => > [16] => Please note: the registrant of the domain name is > specified > [17] => in the "registrant" field. In most cases, Go Daddy > Software, Inc. > [18] => is not the registrant of domain names listed in this > database. > [19] => > [20] => > [21] => Registrant: > [22] => Ahosting.biz > [23] => Ciftehavuzlar > [24] => Istanbul 34177 > [25] => Turkey > [26] => > [27] => Registered through: GoDaddy.com > [28] => Domain Name: OFERHOSTING.COM > [29] => Created on: 26-Aug-04 > [30] => Expires on: 26-Aug-05 > [31] => Last Updated on: 26-Aug-04 > [32] => > [33] => Administrative Contact: > [34] => Ahosting, Ahosting.biz Ltd.Co > domains@ahosting.biz > [35] => Ahosting.biz > [36] => Ciftehavuzlar > [37] => Istanbul 34177 > [38] => Turkey > [39] => 905442272883 Fax -- > [40] => Technical Contact: > [41] => Ahosting, Ahosting.biz Ltd.Co > domains@ahosting.biz > [42] => Ahosting.biz > [43] => Ciftehavuzlar > [44] => Istanbul 34177 > [45] => Turkey > [46] => 905442272883 Fax -- > [47] => > [48] => Domain servers in listed order: > [49] => NS11.SAMESERVERS.NET > [50] => NS12.SAMESERVERS.NET > ) > > ) > > > > > > Pero lo que necesito son los datos, no con el array y los signos, alguien lo > ha solucionado? > > > > Atte, > > > > remy > >

« previous php.general.es (#51104) next »