News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nick Halstead's Blog:
Simple use of DIGG API for your blog
April 25, 2007 @ 11:22:00

With the recent release of the new Digg API, developers all over the web have picked it up and started playing with it to integrate it with their own applications. On developer, Nick Halstead, decided to grab the latest stories and publish the headlines to his page. In the process, though, he learned a little something about XML handling in PHP4.

I quickly discovered that XML decoding under PHP 4 is a pain in the (****) when you do not have access to install further modules. So quickly moved onto JSON, but the lovely function json_decode is PHP 5 only. But I did a bit of search and found several PHP json classes without any dependencies.

With this, and some help from a bit more code, he was able to create the sample he shares in the post - a script to grab the latest stories and display their titles to his page.

3 comments voice your opinion now!
digg api class xml handle example digg api class xml handle example


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: Add icons to GtkMenu

Jani Hartikainen's Blog: Handling errors in Zend Framework

SitePoint.com: Best Practice for Code Examples

Ilia Alshanetsky\'s Blog: PHP 5.1.1 Released! (and a Rant)

KillerPHP Blog: PHP Interfaces: when and why you should use them instead of classes?


Community Events

Don't see your event here?
Let us know!


laravel library extension unittest series introduction language security threedevsandamaybe framework community version laravel5 podcast api release opinion symfony voicesoftheelephpant interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework