PHP Development
Christmas 2009
This year we had 3 Christmas events. The first was with my side of the family the week prior to Christmas and the last two were with Kayla’s family on Christmas Eve and Christmas day. Since I have been too busy lately with work and family to sit down and write I thought I would [...]
How to Read a Remote Text File with PHP
Reading text files with PHP isn’t really too difficult. I have done it quite a few times but it isn’t something I do everyday. A few weeks ago, I wrote a simple script to read a text file and it has been working great, until today. Originally, the script I wrote was reading a very [...]
Software to Automatically Make a HTML version of a Dynamic Website
It seems like there are a million different content management systems out there. Some like the ZLCMS system we use at Zipline are transferrable to another web host but occasionally we have run into web development companies with ‘proprietary’ content management systems. Many of these companies won’t allow their customers to transfer their website to [...]
How to use PHP in .htm or .html Files
The need to execute PHP in HTM or HTML files may occur for a number of reasons. The most common of which seems to be adding content managed portions to an existing HTML website. The .htm or .html pages will be part of the navigation, previously indexed by search engines, and likely linked to by [...]
How to Detect IE6 Browser with JavaScript
I have been doing a lot of work with jQuery lately. The jQuery library offers great cross browser support for most functions but unfortunately even this magic wand can’t solve all the problems with Internet Explorer 6 (IE6) compatibility. Previously, jQuery had a browser() function that helped detect a browser so that a developer could [...]
Block .inc Files from Displaying on an Apache Web Server
Block .inc Files from Displaying on Apache Web ServerBlock .inc Files from Displaying on Apache Web ServerMany PHP developers use the .inc file extension to signify a script that is included within another. This can be very handy when scanning a directory or block of code looking for specific references or calls. One of the [...]
A Little Known List of JavaScript Functions Equivalent to PHP Functions in jQuery
Many of us PHP developers often find working with JavaScript arrays to be a frustrating task. PHP has a number of very powerful built in functions like: in_array(), is_array(), array_merge(), array_map(), and array_unique() that are just plain missing in JavaScript. Over the years, many of these functions have been ported into JavaScript buy developers much [...]
How to Get the Last Four Digits of a Credit Card Number with PHP
Today, I had a friend ask me how to get the last four digits of a credit card number using PHP. I have done this at least a hundred times over the years and never really given it a second thought but for those new to PHP this could be a confusing task. It isn’t [...]
What is JavaScript’s Equivalent to PHP strip_tags()
A couple of days ago I was working on a project using jQuery where I was traversing through a table and totaling several numeric values. The problem I ran into was that most of these values were wrapped in HTML tags and the tags were not standardized from field to field so a simple replace() [...]
MySQL Dump of the 50 U.S. States
There have been many times I have needed a list of the 50 U.S. States for web applications. I have probably typed these in a dozen times or more over the years. It seems everytime I search for this list as a MySQL dump I am bombarded with data services trying to sell it for [...]

