Blog Posts

PHP HTML Email Function

Sep 23, 2008 - Elliott Brueggeman
PHP provides the mail() function for easy sending of mail from your PHP server. The problem is that sending HTML email (the most popular format for emails) is not easily done using native PHP functions.

PHP trim_text() function – shorten text without cutting words in half

Sep 8, 2008 - Elliott Brueggeman
Here’s another PHP function I cannot live without – I add this into my standard PHP functions include on all projects. Often when displaying text, I am forced to abbreviate the text to a certain number of characters.

Simple PHP Security Framework

Aug 23, 2008 - Elliott Brueggeman
Having a secure area to a PHP site is a common website requirement. Implementing the secure area, on the other hand, can be difficult and confusing.

Wordpress RSS Feed by Tag

Aug 10, 2008 - Elliott Brueggeman
Wordpress’s dynamically generated feeds is one of its strongest points. However, there is a glaring omission with the feed generation code – there is no way to generate a feed by tag.

Creating an Advanced PHP Captcha

May 13, 2008 - Elliott Brueggeman
Last November, I published a post on creating a simple PHP Captcha. Some readers noted that I actually used a more advanced captcha for my own site’s discussion pages, and asked for the source code.

MYSQL and PostgreSQL PHP Performance

Apr 29, 2008 - Elliott Brueggeman
Overview After adding PostgreSQL compatibility to my PHPSimpleChat library, I became interested in its performance versus MYSQL. In my workplace, a large New York based media corporation, MYSQL is quickly becoming the database of choice ahead of the costly Sybase.

PHP AJAX – Username Available Example

Apr 8, 2008 - Elliott Brueggeman
Background Previously I posted my PHP AJAX Framework so I thought I would give an example of its use. In this case, you probably have seen this example before – using AJAX and PHP to check if a username is available during some kind of web-based user registration.

PHP 5+ Advanced Timer Class

Mar 19, 2008 - Elliott Brueggeman
Again? Awhile ago I posted a PHP Execution class article for timing various PHP elements. Since then, a few developers have requested that I include the ability to start and start the timer, so you can be more precise with elements that you want to time and elements that you don’t.

PHP Get and Post Data Functions

Mar 8, 2008 - Elliott Brueggeman
MY Common PHP Includes When I start a new application or website, I always start with the same framework of files. I have a series of include files that I include as necessary on pages (scripts) on the site.

Configuring Your php.ini File

Feb 21, 2008 - Elliott Brueggeman
Why Change Your php.ini file? Both PHP for Windows and Linux ship with pre-configured .ini files with settings common to most PHP setups.