Source for file example-obj.php
Documentation is available at example-obj.php
//error_reporting(E_ALL|E_STRICT);
require_once 'Services/ProjectHoneyPot.php';
* <?php $access_key = '...'; ?>
include dirname (__FILE__ ) . '/config.php';
$sphp->setResponseFormat ('object');
$status = $sphp->query ($harvester);
echo "\nMSG: " . $e->getMessage ();
echo "\nCODE: " . $e->getCode ();
echo 'Don\'t bother. Probably a regular user. ;-)';
if ($status->isHarvester ()) {
echo '<h1>OMG, a harvester!!!</h1>';
echo '<pre>'; var_dump($status->getAll ()); echo '</pre>';
Documentation generated on Mon, 11 Mar 2019 15:19:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|