Skip to Main Content
PHP 5 Kochbuch, Third Edition
book

PHP 5 Kochbuch, Third Edition

by David Sklar, Adam Trachtenberg, Carsten Lucke, Matthias Brusdeylins, Ulrich Speidel, Stephan Schmidt
September 2009
Intermediate to advanced content levelIntermediate to advanced
912 pages
48h 11m
German
O'Reilly Verlag
Content preview from PHP 5 Kochbuch, Third Edition

20.11 Informationen über einen Domainnamen herausfinden

Problem

Sie möchten Kontaktinformationen oder andere Details über einen Domainnamen herausfinden.

Lösung

Verwenden Sie die Net_Whois-Klasse von PEAR:

require 'Net/Whois.php';
$server = 'whois.networksolutions.com';
$query = 'example.org';

$whois = new Net_Whois;
$data = $whois->query($server, $query);

Diskussion

Die Methode Net_Whois::query( ) gibt einen langen Text-String zurück, dessen Inhalt daran erinnert, wie schwer es sein kann, verschiedene Whois-Resultate zu analysieren:

Registrant: Internet Assigned Numbers Authority (EXAMPLE2-DOM) 4676 Admiralty Way, Suite 330 Marina del Rey, CA 90292 US Domain Name: EXAMPLE.ORG Administrative Contact, Technical Contact, Billing Contact: Internet Assigned ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP programmieren unter Windows

PHP programmieren unter Windows

Arno Hollosi
CSS Kochbuch, 3rd Edition

CSS Kochbuch, 3rd Edition

Joergen Lang, Christopher Schmitt

Publisher Resources

ISBN: 9783868993271Purchase book