PEAR::Net_DNSBL Package question!
| From: | Kevin Bala | Date: | Mon, 28 Jan 2008 12:31:56 +0000 |
| Subject: | PEAR::Net_DNSBL Package question! | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-28483@lists.php.net to get a copy of this message | ||
Hi,
I am new to PEAR packages and playing bit. Need know why is the Net_DNSBL
package incredible slow compared to ipcraft script (
http://www.ipcraft.com/dnsbl/)
Here is my script. Please help me to improve the performace.
<?php
require_once 'Net/DNSBL.php';
$dnsbl = new Net_DNSBL();
$dnsbl->setBlacklists(array('sbl-xbl.spamhaus.org',
'bl.spamcop.net',
'list.dsbl.org',
'multihop.dsbl.org',
'unconfirmed.dsbl.org',
'opm.blitzed.org',
'dnsbl.njabl.org',
'dynablock.njabl.org',
'dnsbl.net.au',
'blacklist.spambag.org',
'ex.dnsbl.org',
'dul.dnsbl.sorbs.net',
'blackholes.five-ten-sg.com',
'cbl.abuseat.org'));
if ($dnsbl->isListed("http://surbl-org-permanent-test-point.com/justatest",
true)) {
print_r($dnsbl->getDetails("
http://surbl-org-permanent-test-point.com/justatest"));
}
?>
Thank you,
Kevin