batch/1.1/old/test7.php

41 lines
1.1 KiB
PHP
Raw Normal View History

#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
<?php
include_once(FWK_PATH.'common/chiffres.php');
include_once(FWK_PATH.'common/dates.php');
include_once(FWK_PATH.'common/curl.php');
/*include_once(INCLUDE_PATH.'insee/classMInsee.php');
include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
include_once(FWK_PATH.'mail/sendMail.php');
*/
echo simpleWhois('indiscore', 'fr', true);
die();
$tab = array( 'toto.com',
'momo.com',
'yoyo.fr',
'65qs4df56q4qsdqsd.com',
'koko.net',
'zozo.net',
'soso.net',
'qoqo.net',
'qs56d4qs56d4qs65d4qs564.net',
'xoxo.net',
'coco.com',
'hoho.fr',
'nono.net',
'dodo.com',
);
2013-06-19 08:24:49 +00:00
// R<>cup<75>ration des r<>sultats
$output = false;
2013-06-19 08:24:49 +00:00
// Ex<45>cution
if($tab){
foreach($tab as $host){
2013-06-19 08:24:49 +00:00
list($domain, $tdl) = split(".", $host, 2); // le 2 permet de s'arreter apr<70>s le 1er point ce qui permet d'avoir des extenssion du type .com.fr
$output[$host] = simpleWhois($domain, $tdl);
}
}
2013-06-19 08:24:49 +00:00
// Affichage "brut" des donn<6E>es trait<69>es
if($output){
print_r($output);
}
?>