Source for file example-multiple.php
Documentation is available at example-multiple.php
//error_reporting(E_ALL|E_STRICT);
require_once 'Services/ProjectHoneyPot.php';
* <?php $access_key = '...'; ?>
include dirname (__FILE__ ) . '/config.php';
$sphp->setResponseFormat ('object');
//$ip = $_SERVER['REMOTE_ADDR'];
$ips = array ('24.132.194.14', '62.75.159.212', 'heise.de', '81.169.145.28');
$status = $sphp->query ($ips);
echo '<br />MSG: ' . $e->getMessage ();
echo '<br />CODE: ' . $e->getCode ();
if (count($status) == 0 ) {
echo "<h1>COUNT: " . count($status) . "</h1>";
foreach ($status AS $res) {
echo 'Don\'t bother. Probably a regular user. ;-)' . "\n";
if ($res->isHarvester ()) {
echo '<h1>OMG, a harvester!!!</h1>';
echo '<pre>'; var_dump($res); echo '</pre>';
Documentation generated on Mon, 11 Mar 2019 15:45:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|