Posts tagged ‘php’

Splitting names

by Josh Fraser on August 17, 2009


Update 8/18/09: This project has been moved to Google Code. Please visit http://code.google.com/p/php-name-parser/ for the latest version. The quest I'm on a ongoing search to find the best algorithm for splitting a full name into a first name ...

How to use variable variables in PHP

by Josh Fraser on May 31, 2009


One of the biggest time-savers in PHP is the ability to use variable variables.  While often intimidating for newcomers to PHP, variable variables are extremely powerful once you get the hang of them. Variable variables are just variables whose names ...

How to use curl_multi() without blocking

by Josh Fraser on January 26, 2009


Update 9/30/09: This project has been moved to Google Code. Please visit http://code.google.com/p/rolling-curl/ for the latest version. A more efficient implementation of curl_multi() curl_multi is a great way to process multiple HTTP requests in ...

How to detect the RSS feed for a blog

by Josh Fraser on June 28, 2008


Every wondered how to automatically figure out the RSS feed for a blog? Generally speaking, it's a simple task -- just download the HTML for the given blog and use a fancy regular expression to find the associated RSS feed. In PHP, it looks something ...