PHP Country Array
January 24th, 2010
This script includes an array of countries you can use in your PHP forms. I also included a select example that uses the same array to help speed up your development.
Blank CDATA with PHP and SimpleXML
January 4th, 2010
By default CDATA blocks in XML requests using SimpleXML are not returned and the node is blank. Here is an example using an RSS feed from DevShed.
jQuery <select> Manipulation, Multiple Selects with JSON, Set Defaults, Oh My
February 7th, 2009
The following examples cover some of the basics when working with a HTML element. Multiple selects, set multiple selects after post and set the default selected value on page load.
Set PHP Include Path in htaccess
December 26th, 2008
If you do not want to change the include_path directories (or you don’t have access to php.ini) you can still set the include_path value within your root .htaccess file.
Update/Create /doc_root/.htaccess
Unix/Linux Servers
php_value include_path "/path/to/include"
Windows Servers
php_value include_path "C:/path/to/include"
PHP
To call the include within PHP do the following:
require_once('file.php');
The file above is in /doc_root/include/file.php
Options
Multiple include directories
If you have multiple include [...]
My Essential Developer’s Toolbox – Part I
November 23rd, 2008
This is a multi-part post that lists all of the tools that I use on a regular basis as a web developer. The list is Microsoft Windows centric but I will point out the applications that are cross-platform (as best as I can).
IDEs (Integrated Development Environment)*
Microsoft ASP.NET
Both of the IDEs below are top notch and [...]
PHP implode() Function with C#
November 23rd, 2008
The following snippet will join values in an array with a specified separator.
string[] items = new string[] { "one", "two", "three" };
string.Join(", ", items);









