note 82701 added to function.checkdnsrr
| From: | loaded67 at hotmail dot com | Date: | Tue, 22 Apr 2008 16:27:33 +0000 |
| Subject: | note 82701 added to function.checkdnsrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138660@lists.php.net to get a copy of this message | ||
A php5.2 SPL implementation substitute for win platforms.
<?php
if(!function_exists('checkdnsrr')){
function checkdnsrr($host, $type=''){
if(!empty($host)){
$type = (empty($type)) ? 'MX' : $type;
exec('nslookup -type='.$type.' '.escapeshellcmd($host), $result);
$it = new ArrayIterator($result);
foreach(new RegexIterator($it, '~^'.$host.'~', RegexIterator::GET_MATCH) as
$result){
if($result){
return true;
}
}
}
return false;
}
}
?>
----
Server IP: 83.137.20.135
Probable Submitter: 62.234.59.238
----
Manual Page -- http://www.php.net/manual/en/function.checkdnsrr.php
Edit -- https://master.php.net/note/edit/82701
Del: integrated -- https://master.php.net/note/delete/82701/integrated
Del: useless -- https://master.php.net/note/delete/82701/useless
Del: bad code -- https://master.php.net/note/delete/82701/bad+code
Del: spam -- https://master.php.net/note/delete/82701/spam
Del: non-english -- https://master.php.net/note/delete/82701/non-english
Del: in docs -- https://master.php.net/note/delete/82701/in+docs
Del: other reasons-- https://master.php.net/note/delete/82701
Reject -- https://master.php.net/note/reject/82701
Search -- https://master.php.net/manage/user-notes.php