PHPDelicious - Fail to Connect to Delicious

Posted by Meander365 on Stack Overflow See other posts from Stack Overflow or by Meander365
Published on 2010-04-18T05:57:54Z Indexed on 2010/04/18 6:03 UTC
Read the original article Hit count: 319

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about php

Related posts about delicious