News Feed
Sections




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

NETTUTS.com:
Caching, YQL, and Regular Expressions
November 10, 2010 @ 10:07:14

On NETTUTS.com today there's a new tutorial showing you how to work with YQL for pulling information from remote feeds and PHP (with regular expressions) to handle filtering and caching.

In today's tutorial, we're going to mix a handful of technologies. First, we'll review how to implement a simple form of text file caching with PHP. To illustrate this technique, we'll use the wonderful YQL to query Twitter's search API for a list of tweets which contain the string, "nettuts." Finally, we'll experiment with PHP's regular expression capabilities, and will turn all Twitter usernames and urls into clickable links.

They show you (with the help of a few screenshots) how to get the YQL system to work with your PHP scripts and how you can fun a simple query against it. They use a simple file-based caching technique and a regular expression (not the simplest thing, mind you) to extract usernames and links from the results.

0 comments voice your opinion now!
yql caching regular expression tutorial twitter


blog comments powered by Disqus

Similar Posts

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

Thomas Weinert: Carica Chip 101 - Controlling An LED With PHP

Robert Basic's Blog: A Zend_Captcha example

Script-Tutorials.com: How to Protect any Site from Spam using Akismet

PHPEasy.co.uk: Sorting array data using SplMaxHeap


Community Events





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


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

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