PHP

PHP United States State Array

September 15th, 2010 | Posted in PHP
0

For those forms when you need a state dropdown. Includes a <select> example....

Send HTML Email with PHP and mail()

January 25th, 2010 | Posted in PHP
2

The PHP mail() function is great for sending plain text emails but it will not send HTML emails without special headers. This article will show you a quick example how to send HTML emails with PHP....

PHP Country Array

January 24th, 2010 | Posted in PHP
0

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....

Access @attributes Nodes in SimpleXML Objects

January 5th, 2010 | Posted in PHP
0

Access the [@attributes] in a SimpleXML object with this simple fix....

Blank CDATA with PHP and SimpleXML

January 4th, 2010 | Posted in PHP
0

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....

Set PHP Include Path in htaccess

December 26th, 2008 | Posted in Apache, PHP
1

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 ...

Simple Smarty Template Example

December 20th, 2008 | Posted in PHP
0

For those newer to the Smarty Template Engine I thought I would make a simple example to help get started. Download and Install Download Grab the Smarty example here. This is using the latest version as of this post, v2.6.22. Go here if you need an alternate version. Install Extract the downloaded archive to the ...

My Essential Developer's Toolbox – Part I

November 23rd, 2008 | Posted in ASP.NET, MySQL, PHP, Programming, SQL Server, Software
2

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 ...