Tag Archives: cURL

PHP cURL Wrapper


I’ve put up a gist of a simple PHP cURL wrapper which simplifies basic content fetching with cURL. The class throws standard Exceptions in case of no content being returned or incorrect settings being passed as arguments. Setup:

Simple setters for … Continue reading

Posted in PHP | Tagged cURL, PHP | Leave a comment

Facebook Likes, Twitter Follows and Feedburner Count in PHP with cURL/SimpleXML (Deluxe)


So API’s from common providers are unreliable… below is the same code as my previous post but with two layers (1h + 24h) of Alternative PHP Cache (APC) caching and exception handling for the SimpleXML. Worth noting that the code … Continue reading

Posted in PHP | Tagged APC, API, cURL, Facebook, FeedBurner, PHP, SimpleXML, Twitter, XML | 1 Comment

Facebook Likes, Twitter Follows and Feedburner Count in PHP with cURL/SimpleXML


Basic (no error handling) copy and paste code for getting Facebook Likes, Twitter Follows and a Feedburner Subscription count using PHP (with cURL):

Note: PHP must be compiled with cURL: http://uk.php.net/manual/en/curl.installation.php Note: For the Feedburner API request to work you … Continue reading

Posted in PHP | Tagged API, cURL, Facebook, FeedBurner, PHP, SimpleXML, Twitter, XML | 2 Comments