Category: "PHP"

Wicked Good Gallery - Lightweight LAMP, Easy to Administer
Jun 13th
The Wicked Good Gallery grew from an idea mentioned at http://w3schools.com/forum and discussions with the people at http://lilyclaireart.com.
The challenge was to build a gallery application that would allow site visitors to view and purchase artwork… more »

Debugging AJAX
Feb 11th
Use the transport mechanism to send debug information. For example, if you're sending back an array of data, add a new element (or several), and put in the SQL query so you can see exactly what's being executed.
Store the returned data in global variab… more »

Upgrading stock CentOS5 PHP to 5.2.12
Feb 1st
To run eZ publish 4.2, I needed to upgrade CentOS's PHP 5.1.6 to PHP 5.2.12.
I started at http://php.net, and ended at http://wiki.iuscommunity.org/Doc/ClientUsageGuide#Installing_Packages_from_IUS_Testing The site has a nice collection of RPMs for P… more »

Phone Number RegExp - PHP
Jul 30th
Matching a phone number, with a regular expression, and disregarding any extraneous characters.Useful for searches, not validation.<?php$aPhoneNumbers=array('7085556232','1(708)555-6232','(708)555-6232','708.555.6232','1.708.555.… more »

Rebuilding PHP Under CentOS5
Jul 7th
Configure firewall to allow httpd requests: system-config-securitylevel
Get PHP development RPM: http://rpm.pbone.net/index.php3/stat/4/idpl/8077900/com/php-devel-5.1.6-20.el5.i386.rpm.html
Get PHP source RPM: ftp://ftp.pbone.net/mirror/ftp.cen… more »