PHPDelicious - Fail to Connect to Delicious
- by Meander365
phpdelicious (http://www.phpdelicious.com/) is a wrapper class for pulling in your delicious bookmarks using php.
But I can't get it to work. Here's my code - my index.php:
<?php
require('php-delicious.inc.php');
define('DELICIOUS_USER', 'my-user-name-here');
define('DELICIOUS_PASS', 'my-password-here');
$oDelicious = new PhpDelicious(DELICIOUS_USER, DELICIOUS_PASS);
?>
<?php
if ($aPosts = $oDelicious->GetAllPosts()) {
foreach ($aPosts as $aPost) {
echo '<a href="'.$aPost['url'].'">'.$aPost['desc'].'</a>';
echo $aPost['notes'];
echo $aPost['updated'];
}
} else {
echo $oDelicious->LastErrorString();
}
?>
But I get this error :
Notice: Use of undefined constant CACHE_PATH - assumed 'CACHE_PATH' in C:\wamp\www\testing\cache.inc.php on line 44
Connection to del.icio.us failed.
Any ideas?