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 [...]
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 [...]
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 [...]
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 [...]
PHP Quick Profiler
Have you ever wanted a Firebug for PHP? Thanks to Twitter I came across the PHP Quick Profiler or PQP for short. It is a script that was developed by the team at Wufoo that helps analyze and debug performance of PHP scripts. An example of this script in use can be found at: http://particletree.com/examples/pqp/. [...]
How to get the Extension of a File Using PHP
As a PHP developer, there are times where you need to get the extension of a file. You may need to get the extension of a .jpg file so you can resize it or you may need to check to see if an uploaded file has a .pdf extension. With PHP there are a number [...]
Is Microsoft Evolving?
There has been a lot of publicity surrounding Microsoft in the last few weeks. Between some major layoffs, the surprise success of Windows 7, and Bill Gates speaking at TED, Microsoft has made headlines in nearly every technology publication in the last month. In many of these articles I have noticed an ongoing theme, increasing [...]
PHP Remove Non ASCII Characters from a String
I hate the stupid odd characters that sometimes seem to magically appear from nowhere in text. Some call the odd characters, some call them special characters, I call them non ASCII characters but whatever you call them they are inconvenient. Often they come along with text pasted into a content management system from Microsoft Word. [...]

