News Feed
Sections




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

DevShed:
Caching Dynamic Twitter Signature Images with PHP
September 02, 2009 @ 08:26:59

DevShed finishes off their series looking at creating the Twitter "badges" for your site, complete with latest post and profile pic, in this fifth and final part. This time they focus on caching the results.

You may find that Twitter will start cutting off your requests. At first that may seem confusing, but keep in mind that regardless of where the image actually appears, the request always originates from the IP address of the web server where the script is located. To circumvent this pitfall, we can add a caching feature to our Twitter signature image application.

Their caching method involves two steps: saving the user information including the latest tweet and making a local copy of the profile pic (avatar). The details are cached into a local file with the XML returned from the feed request.

0 comments voice your opinion now!
tutorial twitter badge dynamic


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend Form Mastery with Zend_Config - Part 2, Core Form Configuration

Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite

Christoph Dorn's Blog: Integrating FirePHP for Ajax Development

Master Zend Framework: Using the ClassMap Autoloader for Better Performance

Frikk.tk: How to make your own CAPTCHA protection using PHP


Community Events





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


library release introduction language interview bugfix api unittest podcast application wordpress threedevsandamaybe community developer laravel series code configure install list

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