PHP Development

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 [...]


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/. [...]


GoDaddy Dedicated Server Hosting Blocks Port 25

Today I was helping a client troubleshoot a problem with a dedicated server he has at GoDaddy. For some reason, a web form created by another developer was having problems sending on his GoDaddy server. After reviewing the code, I determined it was likely an external issue. Some testing of PHP mail() and phpMailer lead [...]


An Iron-fisted Personal Development Policy

I have been thinking a lot lately about personal development. In a constantly evolving industry like web design, if you want to stay relevant, you need to stay current. Every day there is some new development, product release, or technique developed. If you don’t continue to learn, try, explore, and grow, eventually you will go [...]


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 [...]


Have you Heard about Webmaster Radio?

I hadn’t, at least not until this morning. I came across a reference to WebmasterRadio.fm while reading my RSS reader. I don’t know how I missed something like this. I love listening to industry related information. Until this morning, I was content with my weekly BoagWorld podcast episode but it turns out there is an [...]


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 [...]