Arrays y como sacar los datos...

From: Date: Fri, 31 Jan 2003 17:48:20 +0000
Subject: Arrays y como sacar los datos...
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-31902@lists.php.net to get a copy of this message
Mi especialidad no son lo arrays, pero me he metido en laprogramación de modulo para oscommcer y ando atascado con el tema de los arrays. El rpoblea es el siguiente: Usando la clase Whois obtengo un array con los datos de las consultas. Las consultas puede ser para un solo tipo de dominio (genera un array con 1 elemento) o vacio. También pueden ser para mas de un tipo de dominio por lo que el array puede tener más de una fila. En todos los casos, cada fila tiene varios valores, pero estos (el nombre de fila) es variable. Pasar esa info a un unico array para formatearlo linea a linea es donde me estoy pegando. Utilizando <pre>$array</pre> veo la salida como esta: Por mas que intento usar (list($key, $val) = each($array) no consigo loque quiero... Gracias. -- Marco A. Mateos - Linux User: 209189 http://www.lomejordeinternet.net http://hosting.lomejordeinternet.net http://graficas.lomejordeinternet.net marco@quitaesto.lomejordeinternet.net / ICQ: 172542875 Clave Pública disponible en pgp.rediris.es http://www.lomejordeinternet.net/pgp/marco_pub_key.asc

 Array ( [0] => Array ( [regyinfo] => Array ( [domain] => NUNCAMAIS.COM [registrar] => COMPUTER SERVICES LANGENBACH GMBH DBA JOKER.COM [whois] => whois.joker.com [referrer] => http [nameserver] => Array ( [0] => HAL9000.TELERED.COM [1] => FALCON.TELERED.COM ) [upadated] => 03-dec-2002 ) [rawdata] => Array ( [0] => domain: nuncamais.com [1] => status: production [2] => origin-c: felix@telered.com#0 [3] => owner: Felix Baltanas Rubio [4] => email: felix@telered.com#0 [5] => address: Salvador Minguijon 23 [6] => city: Zaragoza [7] => state: ZARAGOZA [8] => postal-code: 50002 [9] => country: SPAIN [10] => admin-c: felix@telered.com#0 [11] => tech-c: felix@telered.com#0 [12] => billing-c: felix@telered.com#0 [13] => nserver: hal9000.telered.com 194.143.194..232 [14] => nserver: falcon.telered.com 194.143.194..246 [15] => registrar: JORE-1 [16] => created: 2002-12-04 02:28:11 UTC JORE-1 [17] => expires: 2003-12-03 20:27:58 UTC [18] => source: joker.com [19] => [20] => [21] => db-updated: 2003-01-31 18:41:32 UTC ) [dom] => nuncamais.com ) [1] => Array ( [regyinfo] => Array ( [domain] => NUNCAMAIS.NET [registrar] => COMPUTER SERVICES LANGENBACH GMBH DBA JOKER.COM [whois] => whois.joker.com [referrer] => http [nameserver] => Array ( [0] => HAL9000.TELERED.COM [1] => FALCON.TELERED.COM ) [upadated] => 03-dec-2002 ) [rawdata] => Array ( [0] => domain: nuncamais.net [1] => status: production [2] => origin-c: felix@telered.com#0 [3] => owner: Felix Baltanas Rubio [4] => email: felix@telered.com#0 [5] => address: Salvador Minguijon 23 [6] => city: Zaragoza [7] => state: ZARAGOZA [8] => postal-code: 50002 [9] => country: SPAIN [10] => admin-c: felix@telered.com#0 [11] => tech-c: felix@telered.com#0 [12] => billing-c: felix@telered.com#0 [13] => nserver: hal9000.telered.com 194.143.194..232 [14] => nserver: falcon.telered.com 194.143.194..246 [15] => registrar: JORE-1 [16] => created: 2002-12-04 02:28:12 UTC JORE-1 [17] => expires: 2003-12-03 20:27:59 UTC [18] => source: joker.com [19] => [20] => [21] => db-updated: 2003-01-31 18:41:32 UTC ) [dom] => nuncamais.net ) [2] => Array ( [regyinfo] => [rawdata] => [dom] => nuncamais.org ) [3] => Array ( [rawdata] => Array ( [0] => NOTICE: Access to .INFO WHOIS information is provided to assist persons in [1] => determining the contents of a domain name registration record in the Afilias [2] => registry database. The data in this record is provided by Afilias Limited [3] => for informational purposes only, and Afilias does not guarantee its [4] => accuracy. This service is intended only for query-based access. You agree [5] => that you will use this data only for lawful purposes and that, under no [6] => circumstances will you use this data to: (a) allow, enable, or otherwise [7] => support the transmission by e-mail, telephone, or facsimile of mass [8] => unsolicited, commercial advertising or solicitations to entities other than [9] => the data recipient's own existing customers; or (b) enable high volume, [10] => automated, electronic processes that send queries or data to the systems of [11] => Registry Operator or any ICANN-Accredited Registrar, except as reasonably [12] => necessary to register domain names or modify existing registrations. All [13] => rights reserved. Afilias reserves the right to modify these terms at any [14] => time. By submitting this query, you agree to abide by this policy. [15] => [16] => Domain ID:D2503048-LRMS [17] => Domain Name:NUNCAMAIS.INFO [18] => Created On:05-Dec-2002 11:25:04 UTC [19] => Expiration Date:05-Dec-2004 11:25:04 UTC [20] => Sponsoring Registrar:R191-LRMS [21] => Status:ACTIVE [22] => Status:OK [23] => Registrant ID:C2746681-LRMS [24] => Registrant Name:Jorge Perez Olmo [25] => Registrant Organization:Jorge Perez Olmo [26] => Registrant Street1:Sector Oficios 2, Local 2 [27] => Registrant City:Tres Cantos [28] => Registrant Postal Code:28760 [29] => Registrant Country:ES [30] => Registrant Email:jorge@tiasasi.com [31] => Admin ID:C2746680-LRMS [32] => Admin Name:Jorge Perez Olmo [33] => Admin Street1:Sector Oficios 2, Local 2 [34] => Admin City:Tres Cantos [35] => Admin Postal Code:28760 [36] => Admin Country:ES [37] => Admin Email:jorge@tiasasi.com [38] => Billing ID:C2746680-LRMS [39] => Billing Name:Jorge Perez Olmo [40] => Billing Street1:Sector Oficios 2, Local 2 [41] => Billing City:Tres Cantos [42] => Billing Postal Code:28760 [43] => Billing Country:ES [44] => Billing Email:jorge@tiasasi.com [45] => Tech ID:C1249598-LRMS [46] => Tech Name:GANDI Auto Register 4.1 [47] => Tech Organization:GANDI sarl [48] => Tech Street1:38, rue Notre-Dame de Nazareth [49] => Tech City:Paris [50] => Tech Postal Code:F-75003 [51] => Tech Country:FR [52] => Tech Email:support@gandi.net [53] => Name Server:NS4.GANDI.NET [54] => Name Server:FULL1.GANDI.NET [55] => [56] => ) [regrinfo] => Array ( [ns] => Array ( [0] => NS4.GANDI.NET [1] => FULL1.GANDI.NET ) [domain] => NUNCAMAIS.INFO [created] => 05-Dec-2002 11:25:04 UTC [registrar] => R191-LRMS [organization] => Jorge Perez Olmo [updated] => ) [regyinfo] => Array ( [whois] => whois.afilias.info [referrer] => whois.afilias.info [nameserver] => Array ( [0] => NS4.GANDI.NET [1] => FULL1.GANDI.NET ) [domain] => NUNCAMAIS.INFO [registrar] => R191-LRMS [updated] => ) [dom] => nuncamais.info ) [4] => Array ( [rawdata] => Array ( [0] => Domain Name: NUNCAMAIS.BIZ [1] => Domain ID: D3816294-BIZ [2] => Sponsoring Registrar: NOMINALIA INTERNET SL [3] => Domain Status: ok [4] => Registrant ID: NOM1491001 [5] => Registrant Name: Luis Toribio Troyano [6] => Registrant Address1: Ausias Marc, 28 [7] => Registrant City: San Pedro de Ribas [8] => Registrant State/Province: BARCELONA [9] => Registrant Postal Code: 08810 [10] => Registrant Country: Spain [11] => Registrant Country Code: ES [12] => Registrant Email: ltoribio@teleline.es [13] => Administrative Contact ID: NOM972401 [14] => Administrative Contact Name: Luis Toribio Troyano [15] => Administrative Contact Address1: Ausias Marc, 28 [16] => Administrative Contact City: San Pedro de Ribas [17] => Administrative Contact State/Province: BARCELONA [18] => Administrative Contact Postal Code: 08810 [19] => Administrative Contact Country: Spain [20] => Administrative Contact Country Code: ES [21] => Administrative Contact Phone Number: +34.647587090 [22] => Administrative Contact Email: ltoribio@teleline.es [23] => Billing Contact ID: NOM11994 [24] => Billing Contact Name: Facturacion [25] => Billing Contact Organization: Gestion [26] => Billing Contact Address1: Chile,54 [27] => Billing Contact City: Logrono [28] => Billing Contact State/Province: LA RIOJA [29] => Billing Contact Postal Code: 26005 [30] => Billing Contact Country: Spain [31] => Billing Contact Country Code: ES [32] => Billing Contact Phone Number: +34.94122047 [33] => Billing Contact Facsimile Number: +34.94120479 [34] => Billing Contact Email: gestion@servidoresdns.net [35] => Technical Contact ID: NOM11022 [36] => Technical Contact Name: Hostmaster [37] => Technical Contact Organization: Registros [38] => Technical Contact Address1: Chile,54 [39] => Technical Contact City: Logrono [40] => Technical Contact State/Province: LA RIOJA [41] => Technical Contact Postal Code: 26005 [42] => Technical Contact Country: Spain [43] => Technical Contact Country Code: ES [44] => Technical Contact Email: hostmaster@servidoresdns.net [45] => Name Server: DNS2.SERVIDORESDNS.NET [46] => Name Server: DNS1.SERVIDORESDNS.NET [47] => Created by Registrar: NOMINALIA INTERNET SL [48] => Domain Registration Date: Fri Jan 10 10:56:37 GMT 2003 [49] => Domain Expiration Date: Sun Jan 09 23:59:59 GMT 2005 [50] => [51] => >>>> Whois database was last updated on: Fri Jan 31 17:37:45 GMT 2003 <<<< [52] => [53] => NeuLevel, Inc., the Registry Operator for .BIZ, has collected this information [54] => for the WHOIS database through an ICANN-Accredited Registrar. This information [55] => is provided to you for informational purposes only and is designed to assist [56] => persons in determining contents of a domain name registration record in the [57] => NeuLevel registry database. NeuLevel makes this information available to you [58] => "as is" and does not guarantee its accuracy. By submitting a WHOIS query, you [59] => agree that you will use this data only for lawful purposes and that, under no [60] => circumstances will you use this data: (1) to allow, enable, or otherwise [61] => support the transmission of mass unsolicited, commercial advertising or [62] => solicitations via direct mail, electronic mail, or by telephone; (2) in [63] => contravention of any applicable data and privacy protection acts; or (3) to [64] => enable high volume, automated, electronic processes that apply to the registry [65] => (or its systems). Compilation, repackaging, dissemination, or other use of the [66] => WHOIS database in its entirety, or of a substantial portion thereof, is not [67] => allowed without NeuLevel's prior written permission. NeuLevel reserves the [68] => right to modify or change these conditions at any time without prior or [69] => subsequent notification of any kind. By executing this query, in any manner [70] => whatsoever, you agree to abide by these terms.. [71] => [72] => NOTE: FAILURE TO LOCATE A RECORD IN THE WHOIS DATABASE IS NOT INDICATIVE [73] => OF THE AVAILABILITY OF A DOMAIN NAME. ) [regrinfo] => Array ( [domain] => Array ( [name] => NUNCAMAIS.BIZ [handle] => D3816294-BIZ [sponsor] => NOMINALIA INTERNET SL [nserver] => Array ( [0] => DNS2.SERVIDORESDNS.NET [1] => DNS1.SERVIDORESDNS.NET ) [created] => Fri Jan 10 10:56:37 GMT 2003 [expires] => Sun Jan 09 23:59:59 GMT 2005 ) [owner] => Array ( [handle] => NOM1491001 [name] => Luis Toribio Troyano [email] => ltoribio@teleline.es [address] => Array ( [0] => Ausias Marc, 28 [1] => 08810 San Pedro de Ribas [2] => Spain ) ) [admin] => Array ( [handle] => NOM972401 [name] => Luis Toribio Troyano [phone] => +34.647587090 [email] => ltoribio@teleline.es [address] => Array ( [0] => Ausias Marc, 28 [1] => 08810 San Pedro de Ribas [2] => Spain ) ) [billing] => Array ( [handle] => NOM11994 [name] => Facturacion [organization] => Gestion [phone] => +34.94122047 [fax] => +34.94120479 [email] => gestion@servidoresdns.net [address] => Array ( [0] => Chile,54 [1] => 26005 Logrono [2] => Spain ) ) [tech] => Array ( [handle] => NOM11022 [name] => Hostmaster [organization] => Registros [email] => hostmaster@servidoresdns.net [address] => Array ( [0] => Chile,54 [1] => 26005 Logrono [2] => Spain ) ) ) [registered] => yes [regyinfo] => Array ( [whois] => whois.neulevel.biz [referrer] => www.neulevel.biz [registrar] => NEULEVEL ) [dom] => nuncamais.biz ) ) 1 1 Attachment: [application/pgp-signature] Esta parte del mensaje esta firmada digitalmente signature.asc
« previous php.general.es (#31902) next »