Alternc
latest
Alternc logiel libre pour l'hébergement
whois_test.php
Go to the documentation of this file.
1
#!/usr/bin/php
2
<?php
3
4
// test de la fonction whois :
5
6
include(
"../bureau/class/m_err.php"
);
7
include(
"../bureau/class/m_dom.php"
);
8
9
$err
=
new
m_err
();
10
$dom
=
new
m_dom
();
11
12
$doms
=array(
"dns.be"
,
"eurid.eu"
,
"sonntag.name"
,
"alternc.com"
,
"alternc.org"
,
"alternc.net"
,
"sonntag.fr"
);
13
foreach
(
$doms
as
$d
) {
14
echo
"\n"
;
15
echo
"Searching for whois for domain [$d]\n"
;
16
$srv
=
$dom
->whois(
$d
);
17
if
(is_array(
$srv
)) {
18
foreach
(
$srv
as $s) {
19
echo
" Nameserver: $s\n"
;
20
}
21
}
else
{
22
echo
" No nameserver found !\n"
;
23
}
24
}
25
26
?>
$srv
$srv
Definition:
alternc_fix_myadm_users.php:58
$d
$d
Definition:
awstats.cache.php:7
m_dom
Classe de gestion des domaines de l'hébergé.
Definition:
m_dom.php:31
m_err
Classe de gestion des erreurs apparaissant lors d'appels API.
Definition:
m_err.php:38
$dom
$dom
Definition:
whois_test.php:10
$doms
$doms
Definition:
whois_test.php:12
$err
$err
Definition:
whois_test.php:9
tests
whois_test.php
Generated on Sat Sep 16 2023 12:00:04 for Alternc by
1.9.1