Code Samples
The following are code samples from projects I've worked on. They're here to demonstrate my abilities and (hopefully) to provide guidance to other programmers. Click on the links to download ZIP files containing the PHP source and other relevant files.
Opening Night Countdown Image
The goal of this project was to create an image to be used as a signature on a message board that displayed the number of days remaining until the National Hockey League's opening night. The countdown is based on a hard-coded date and uses code I originally developed for DetroitHockey.Net. Once the number of days remaining is determined, code based off of that which powers the Church Sign Generator determines what images to use to display that number and where to place them on the background.
Database-driven MS Word & Excel Documents
The client for this project wanted to be able to export information from their MySQL database to Microsoft Word and Excel documents. As far as I know, you can't write Word documents in PHP. You can, however, write Word-readable XML documents, so that's what I did. While I could have exported a CSV document and imported it into Excel, as long as I had already gone the XML route for the Word documents I figured I should do the same for the Excel ones.
Web-based File Management System
This project was meant to create a web-based system for uploading and deleting files and creating sub-directories that can be uploaded and delete from using s web-based interface. I wanted to avoid having to set the file permissions to 777, so I used the PEAR Net_FTP module to FTP files into their proper places, rather than the PHP copy() function to copy files from the temp space to their final locations. Included is a small user-management system, which allows for the creation of user accounts that have access to the file management tools.
RSSreader
RSSreader is a small script that provides a little more user-friendly way to customize the lastRSS script. The lastRSS script reads and parses an RSS feed. RSSreader wraps around that and provides a central location for customizing the script and its output. It also allows users to display the contents of a feed in an X/HTML file (rather than a PHP one) by assembling the output into a file that can be included into X/HTML via server-side includes.
