PHP Country Array

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.
Read more on PHP Country Array »
Blank CDATA with PHP and SimpleXML

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.
Read more on Blank CDATA with PHP and SimpleXML »

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.
Read more on jQuery <select> Manipulation, Multiple Selects with JSON, Set Defaults, Oh My »

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 [...]
Read more on Set PHP Include Path in htaccess »

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 [...]
Read more on My Essential Developer’s Toolbox – Part I »

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);
Read more on PHP implode() Function with C# »