Hostingheaderbarlogoj
Join InMotion Hosting for $3.49/mo & get a year on Tuts+ FREE (worth $180). Start today.
Advertisement

Caching, YQL, and Regular Expressions

by
Gift

Want a free year on Tuts+ (worth $180)? Start an InMotion Hosting plan for $3.49/mo.

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 expressions capabilities, and will turn all Twitter usernames and urls into clickable links. Ready…set…


Full Screencast


Advertisement