Send HTML Email with PHP and mail()

Send HTML Email with PHP and mail()

January 25th, 2010
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.
Read more on Send HTML Email with PHP and mail() »
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 »
Access @attributes Nodes in SimpleXML Objects

Access @attributes Nodes in SimpleXML Objects

January 5th, 2010
Access the [@attributes] in a SimpleXML object with this simple fix.
Read more on Access @attributes Nodes in SimpleXML Objects »
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 »

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 »

Simple Smarty Template Example

December 20th, 2008
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 document root of your web [...]
Read more on Simple Smarty Template Example »

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 »

Sponsors