Archive for the 'PHP' Category

Customizing Firefox for Web Development

Friday, September 28th, 2007

One of my most valuable tools as a web developer working in Linux, is Firefox. I think I can safely assume that you're familiar with the Firefox web browser if you're reading this post. However, you may not be familiar with some of the tools to assist you in created your web pages.
Read the rest of this entry »

PHP Format Any Time/Date for MySQL

Wednesday, April 20th, 2005

Many people find the act of formatting a date or time for input into a MySQL database tedious. It's actually very simple. Here is a function that will take a timestamp value such as time() or a human readable string and format it for MySQL. MySQL format is: 'YYYY-MM-DD HH:MM:SS'
Read the rest of this entry »

PHP Zip Code Range and Distance Calculation

Tuesday, April 19th, 2005

Planet Source Code Superior Code Winner!

This is a PHP class to do various calculations with zip codes. It's primary purposes are to calculate the distance between two zip codes and to extract all the zip codes that are within a range of a given zip code. All calculations are based on lattitude and longitude coordinates stored in the database. Included is a class file, demonstration file, and the sql files required to create and populate the MySQL tables.
Read the rest of this entry »

PHP MySQL Database Class

Tuesday, April 19th, 2005

A class for very basic MySQL database connectivity. Written to reduce redundant code in my own projects aswell as aid in debugging and error reporting during the developement phase. Currently connects to a database, execute external files containing SQL commands, insert and update from an array of key => value pairs, insert and update with sql command, query (one result), query (multiple rows), and dump a select query to a table. The zip file contains the class aswell as a demonstration script. Read the rest of this entry »

PHP Authorize.net AIM Interfacing Class

Tuesday, April 19th, 2005

Provides a simplified interface the the authorize.net AIM payment gateway. Allows all the control and flexibility to be in the hands of the PHP developer (you). Uses cURL and SSL. The zip file includes the class to interface with authorize.net as well as a demonstration script on using the file. Read the rest of this entry »

PHP Paypal IPN Integration Class

Tuesday, April 19th, 2005

This free PHP script provides a simple method to interface with paypal and the paypal Instant Payment Notification (IPN) system. It is not a complete system but a single PHP class allowing the PHP developer more control. Included in the zip file is a demonstration PHP script called paypal.php which shows the basic usage of the class.
Read the rest of this entry »