PHP Programming Work
Last updated: October 27, 2009
Most of the PHP programming work I have done to date involves back-end work on customer databases that I cannot display publicly, so I'm at a bit of a loss when people ask me for examples of PHP work I have done. I have created this section to demonstrate some simple applications I have created in the course of learning PHP--that was the primary purpose for creating them, just to learn and apply new techniques. So, while they may not be particularly useful, some of them are, at the least, mildly entertaining.
Cost of the 12 Days of Christmas
This script allows the user to select a number, 1 through 12, and then displays the total cost of that day of Christmas based on the PNC Christmas Price Index for 2007. This was a class project... if you happen to be taking this class, No, I will not give you the code, but I will help you--drop me a note.
Check ISBN for validity
This script checks an ISBN to see if it is possibly valid (that doesn't mean it's been used, it just means it could be used. There are several of these scripts out there, so I'm kind of re-inventing the wheel in writing this one from scratch, but it was a learning process at the time.
JavaScript Menu Generator
This script will generate a vertical or horizontal table-based menu for image links with rollover/mouseovers done with JavaScript. Although I'm not a huge fan of JavaScript, it does sometimes have its place. I created this script after having to produce several sites in a short period of time that had JavaScript menus--it is easier to use this generator than to cut and paste and then edit the resulting JavaScript mess.
Useful Functions
A few useful PHP functions, including the list of states referenced in the Resources sub-section of the Web Design section of this site.
How to Get Image Size with PHP
A useful function for retrieving an image's size using PHP to display dynamic image sizes in your scripts. Both HTML and XHTML/CSS versions.
How to Strip Non-Alphanumeric Characters From a String with PHP
Just what the title says, a regex that will strip all non-alphanumeric characters (except spaces) from a given string. This is useful for naming files based on strings, among other things.
