Category Archives: PHP

PHP Functions to Get and Remove the File Extension from a String

Two useful PHP functions to handle file names and extensions. Continue reading

Posted in PHP, Regular Expressions | 4 Comments

The DynamicRSS PHP Class

Easily create a dynamic RSS 2.0 feed from items in your MySQL database. Works for news, events, articles, and virtually any other item. Continue reading

Posted in PHP | 3 Comments

Get Your Most Recent Twitter Status Using PHP

A PHP function that will return someone’s current Twitter status. Continue reading

Posted in PHP | 23 Comments

Using json_encode() and json_decode() in PHP4

A “future-friendly” JSON solution for PHP < 5.2. Continue reading

Posted in PHP | 24 Comments

Generate Random Passwords in PHP

A PHP function that generates random strings to use for passwords. Continue reading

Posted in PHP | Leave a comment

Calculating Zip Code Distances in PHP

An excellent PHP class to handle distance calculations. Continue reading

Posted in PHP | Leave a comment

Fetching Remote Web Pages With CURL and PHP

The simplest way to retrieve a remote webpage using PHP’s cURL library. Continue reading

Posted in PHP | 1 Comment

scandir() for PHP4

A function that lets you use scandir() in versions prior to PHP5. Continue reading

Posted in PHP | 4 Comments

Preventing Multiple Posts When Users Refresh

A simple method to prevent multiple posts when users hit the refresh button or click ‘back’ on a page with POST data. Continue reading

Posted in PHP | 2 Comments

Uploading Files with PHP

The bare-minimum HTML/PHP code needed to create a successful file upload script. Continue reading

Posted in PHP | 3 Comments