Web Development / PHP Programming

Tips and tutorials for the PHP programming language.

Creating better search suggestions with Sphider

Creating better search suggestions with Sphider

A simple hack to improve the search suggestion function in the Sphider search engine.

Jun 9th, 2010 | 2 comments | PHP Programming
Enabling more robust hypenated word indexing in Sphider

Enabling more robust hypenated word indexing in Sphider

Sphider's default treatment of hyphenated words often yields poor search result accuracy when search terms are used without the hyphens, this simple modification should help correct this.

Apr 2nd, 2010 | 16 comments | PHP Programming
Use PHP cURL to get your Google Feedburner subscriber count text, with result caching

Use PHP cURL to get your Google Feedburner subscriber count text, with result caching

Use PHP code to obtain your FeedBurner subscriber count for styling and placement in your web page, with a simple caching function to reduce the overhead.

Dec 22nd, 2009 | 6 comments | PHP Programming
Another variation on the "time ago" PHP function, use MySQL's datetime field type

Another variation on the "time ago" PHP function, use MySQL's datetime field type

A PHP time ago function for formatting the date on post comments or other timestamps.

Jun 2nd, 2009 | 5 comments | PHP Programming
Calculating the median & average values of an array with PHP

Calculating the median & average values of an array with PHP

Calculate the average and median values of an array of numbers with PHP.

May 13th, 2009 | 4 comments | PHP Programming
Setting your default timezone with PHP's date_default_timezone_set()

Setting your default timezone with PHP's date_default_timezone_set()

Set your default timezone with PHP, without having access to the php.ini file.

May 8th, 2009 | 5 comments | PHP Programming

Back to top