<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Website Builders Resource &#187; PHP</title>
	<atom:link href="http://websitebuildersresource.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://websitebuildersresource.com</link>
	<description>Your Web Development Source</description>
	<lastBuildDate>Mon, 25 Jan 2010 21:53:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Send HTML Email with PHP and mail()</title>
		<link>http://websitebuildersresource.com/2010/01/25/send-html-email-with-php-and-mail/</link>
		<comments>http://websitebuildersresource.com/2010/01/25/send-html-email-with-php-and-mail/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 21:52:39 +0000</pubDate>
		<dc:creator>builderadmin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://websitebuildersresource.com/?p=858</guid>
		<description><![CDATA[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.]]></description>
			<content:encoded><![CDATA[<p>The PHP <a href="http://us2.php.net/manual/en/function.mail.php" target="_blank">mail()</a> function is great for sending plain text emails but it will not send HTML emails without special headers.</p>
<p>Here is a PHP mail() with HTML example:</p>
<pre><code class="php">$body_html = '
	&lt;html&gt;
		&lt;head&gt;
			&lt;title&gt;HTML Test Email&lt;/title&gt;
			&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
		&lt;/head&gt;
		&lt;body&gt;
			&lt;p&gt;
				This is a test.
			&lt;/p&gt;
		&lt;/body&gt;
	&lt;/html&gt;
';

$from = 'sender@example.com';
$to = 'recipient@example.com';
$subject = 'HTML Test Email';
$headers = "From:$from\n" .
    "MIME-Version: 1.0\n" .
    "Content-type: text/html; charset=iso-8859-1";

mail($to, $subject, $body_html, $headers);</code></pre>
<h3>Demo</h3>
<p><a href="http://websitebuildersresource.com/demos/php-html-email/php-html-email.php" target="_blank">Demo Send HTML Email with PHP and mail()</a><br />
		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F&amp;title=Send+HTML+Email+with+PHP+and+mail%28%29"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F&amp;title=Send+HTML+Email+with+PHP+and+mail%28%29"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F&amp;title=Send+HTML+Email+with+PHP+and+mail%28%29"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F&amp;headline=Send+HTML+Email+with+PHP+and+mail%28%29"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=Send+HTML+Email+with+PHP+and+mail%28%29&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=Send+HTML+Email+with+PHP+and+mail%28%29&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=Send+HTML+Email+with+PHP+and+mail%28%29&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=Send+HTML+Email+with+PHP+and+mail%28%29&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=Send+HTML+Email+with+PHP+and+mail%28%29&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F&amp;title=Send+HTML+Email+with+PHP+and+mail%28%29&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F25%2Fsend-html-email-with-php-and-mail%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2010/01/25/send-html-email-with-php-and-mail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Country Array</title>
		<link>http://websitebuildersresource.com/2010/01/24/php-country-array/</link>
		<comments>http://websitebuildersresource.com/2010/01/24/php-country-array/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 16:32:22 +0000</pubDate>
		<dc:creator>builderadmin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[country]]></category>

		<guid isPermaLink="false">http://websitebuildersresource.com/?p=848</guid>
		<description><![CDATA[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.]]></description>
			<content:encoded><![CDATA[<pre><code class="php">$options = array(
	'AF' =&gt; 'Afghanistan',
	'AL' =&gt; 'Albania',
	'DZ' =&gt; 'Algeria',
	'AS' =&gt; 'American Samoa',
	'AD' =&gt; 'Andorra',
	'AO' =&gt; 'Angola',
	'AI' =&gt; 'Anguilla',
	'AQ' =&gt; 'Antarctica',
	'AG' =&gt; 'Antigua and Barbuda',
	'AR' =&gt; 'Argentina',
	'AM' =&gt; 'Armenia',
	'AW' =&gt; 'Aruba',
	'AU' =&gt; 'Australia',
	'AT' =&gt; 'Austria',
	'AZ' =&gt; 'Azerbaijan',
	'BS' =&gt; 'Bahamas',
	'BH' =&gt; 'Bahrain',
	'BD' =&gt; 'Bangladesh',
	'BB' =&gt; 'Barbados',
	'BY' =&gt; 'Belarus',
	'BE' =&gt; 'Belgium',
	'BZ' =&gt; 'Belize',
	'BJ' =&gt; 'Benin',
	'BM' =&gt; 'Bermuda',
	'BT' =&gt; 'Bhutan',
	'BO' =&gt; 'Bolivia',
	'BA' =&gt; 'Bosnia and Herzegowina',
	'BW' =&gt; 'Botswana',
	'BV' =&gt; 'Bouvet Island',
	'BR' =&gt; 'Brazil',
	'IO' =&gt; 'British Indian Ocean Territory',
	'VG' =&gt; 'British Virgin Islands',
	'BN' =&gt; 'Brunei Darussalam',
	'BG' =&gt; 'Bulgaria',
	'BF' =&gt; 'Burkina Faso',
	'BI' =&gt; 'Burundi',
	'KH' =&gt; 'Cambodia',
	'CM' =&gt; 'Cameroon',
	'CA' =&gt; 'Canada',
	'CV' =&gt; 'Cape Verde',
	'KY' =&gt; 'Cayman Islands',
	'CF' =&gt; 'Central African Republic',
	'TD' =&gt; 'Chad',
	'CL' =&gt; 'Chile',
	'CN' =&gt; 'China',
	'CX' =&gt; 'Christmas Island',
	'CC' =&gt; 'Cocos (Keeling) Islands',
	'CO' =&gt; 'Colombia',
	'KM' =&gt; 'Comoros',
	'CG' =&gt; 'Congo',
	'CK' =&gt; 'Cook Islands',
	'CR' =&gt; 'Costa Rica',
	'CI' =&gt; 'Cote D\'ivoire',
	'HR' =&gt; 'Croatia',
	'CU' =&gt; 'Cuba',
	'CY' =&gt; 'Cyprus',
	'CZ' =&gt; 'Czech Republic',
	'DK' =&gt; 'Denmark',
	'DJ' =&gt; 'Djibouti',
	'DM' =&gt; 'Dominica',
	'DO' =&gt; 'Dominican Republic',
	'TP' =&gt; 'East Timor',
	'EC' =&gt; 'Ecuador',
	'EG' =&gt; 'Egypt',
	'SV' =&gt; 'El Salvador',
	'GQ' =&gt; 'Equatorial Guinea',
	'ER' =&gt; 'Eritrea',
	'EE' =&gt; 'Estonia',
	'ET' =&gt; 'Ethiopia',
	'FK' =&gt; 'Falkland Islands (Malvinas)',
	'FO' =&gt; 'Faroe Islands',
	'FJ' =&gt; 'Fiji',
	'FI' =&gt; 'Finland',
	'FR' =&gt; 'France',
	'GF' =&gt; 'French Guiana',
	'PF' =&gt; 'French Polynesia',
	'TF' =&gt; 'French Southern Territories',
	'GA' =&gt; 'Gabon',
	'GM' =&gt; 'Gambia',
	'GE' =&gt; 'Georgia',
	'DE' =&gt; 'Germany',
	'GH' =&gt; 'Ghana',
	'GI' =&gt; 'Gibraltar',
	'GR' =&gt; 'Greece',
	'GL' =&gt; 'Greenland',
	'GD' =&gt; 'Grenada',
	'GP' =&gt; 'Guadeloupe',
	'GU' =&gt; 'Guam',
	'GT' =&gt; 'Guatemala',
	'GN' =&gt; 'Guinea',
	'GW' =&gt; 'Guinea-Bissau',
	'GY' =&gt; 'Guyana',
	'HT' =&gt; 'Haiti',
	'HM' =&gt; 'Heard and McDonald Islands',
	'HN' =&gt; 'Honduras',
	'HK' =&gt; 'Hong Kong',
	'HU' =&gt; 'Hungary',
	'IS' =&gt; 'Iceland',
	'IN' =&gt; 'India',
	'ID' =&gt; 'Indonesia',
	'IQ' =&gt; 'Iraq',
	'IE' =&gt; 'Ireland',
	'IR' =&gt; 'Islamic Republic of Iran',
	'IL' =&gt; 'Israel',
	'IT' =&gt; 'Italy',
	'JM' =&gt; 'Jamaica',
	'JP' =&gt; 'Japan',
	'JO' =&gt; 'Jordan',
	'KZ' =&gt; 'Kazakhstan',
	'KE' =&gt; 'Kenya',
	'KI' =&gt; 'Kiribati',
	'KP' =&gt; 'Korea',
	'KR' =&gt; 'Korea, Republic of',
	'KW' =&gt; 'Kuwait',
	'KG' =&gt; 'Kyrgyzstan',
	'LA' =&gt; 'Laos',
	'LV' =&gt; 'Latvia',
	'LB' =&gt; 'Lebanon',
	'LS' =&gt; 'Lesotho',
	'LR' =&gt; 'Liberia',
	'LY' =&gt; 'Libyan Arab Jamahiriya',
	'LI' =&gt; 'Liechtenstein',
	'LT' =&gt; 'Lithuania',
	'LU' =&gt; 'Luxembourg',
	'MO' =&gt; 'Macau',
	'MK' =&gt; 'Macedonia',
	'MG' =&gt; 'Madagascar',
	'MW' =&gt; 'Malawi',
	'MY' =&gt; 'Malaysia',
	'MV' =&gt; 'Maldives',
	'ML' =&gt; 'Mali',
	'MT' =&gt; 'Malta',
	'MH' =&gt; 'Marshall Islands',
	'MQ' =&gt; 'Martinique',
	'MR' =&gt; 'Mauritania',
	'MU' =&gt; 'Mauritius',
	'YT' =&gt; 'Mayotte',
	'MX' =&gt; 'Mexico',
	'FM' =&gt; 'Micronesia',
	'MD' =&gt; 'Moldova, Republic of',
	'MC' =&gt; 'Monaco',
	'MN' =&gt; 'Mongolia',
	'MS' =&gt; 'Montserrat',
	'MA' =&gt; 'Morocco',
	'MZ' =&gt; 'Mozambique',
	'MM' =&gt; 'Myanmar',
	'NA' =&gt; 'Namibia',
	'NR' =&gt; 'Nauru',
	'NP' =&gt; 'Nepal',
	'NL' =&gt; 'Netherlands',
	'AN' =&gt; 'Netherlands Antilles',
	'NC' =&gt; 'New Caledonia',
	'NZ' =&gt; 'New Zealand',
	'NI' =&gt; 'Nicaragua',
	'NE' =&gt; 'Niger',
	'NG' =&gt; 'Nigeria',
	'NU' =&gt; 'Niue',
	'NF' =&gt; 'Norfolk Island',
	'MP' =&gt; 'Northern Mariana Islands',
	'NO' =&gt; 'Norway',
	'OM' =&gt; 'Oman',
	'PK' =&gt; 'Pakistan',
	'PW' =&gt; 'Palau',
	'PA' =&gt; 'Panama',
	'PG' =&gt; 'Papua New Guinea',
	'PY' =&gt; 'Paraguay',
	'PE' =&gt; 'Peru',
	'PH' =&gt; 'Philippines',
	'PN' =&gt; 'Pitcairn',
	'PL' =&gt; 'Poland',
	'PT' =&gt; 'Portugal',
	'PR' =&gt; 'Puerto Rico',
	'QA' =&gt; 'Qatar',
	'RE' =&gt; 'Reunion',
	'RO' =&gt; 'Romania',
	'RU' =&gt; 'Russian Federation',
	'RW' =&gt; 'Rwanda',
	'LC' =&gt; 'Saint Lucia',
	'WS' =&gt; 'Samoa',
	'SM' =&gt; 'San Marino',
	'ST' =&gt; 'Sao Tome and Principe',
	'SA' =&gt; 'Saudi Arabia',
	'SN' =&gt; 'Senegal',
	'YU' =&gt; 'Serbia and Montenegro',
	'SC' =&gt; 'Seychelles',
	'SL' =&gt; 'Sierra Leone',
	'SG' =&gt; 'Singapore',
	'SK' =&gt; 'Slovakia',
	'SI' =&gt; 'Slovenia',
	'SB' =&gt; 'Solomon Islands',
	'SO' =&gt; 'Somalia',
	'ZA' =&gt; 'South Africa',
	'ES' =&gt; 'Spain',
	'LK' =&gt; 'Sri Lanka',
	'SH' =&gt; 'St. Helena',
	'KN' =&gt; 'St. Kitts and Nevis',
	'PM' =&gt; 'St. Pierre and Miquelon',
	'VC' =&gt; 'St. Vincent and the Grenadines',
	'SD' =&gt; 'Sudan',
	'SR' =&gt; 'Suriname',
	'SJ' =&gt; 'Svalbard and Jan Mayen Islands',
	'SZ' =&gt; 'Swaziland',
	'SE' =&gt; 'Sweden',
	'CH' =&gt; 'Switzerland',
	'SY' =&gt; 'Syrian Arab Republic',
	'TW' =&gt; 'Taiwan',
	'TJ' =&gt; 'Tajikistan',
	'TZ' =&gt; 'Tanzania, United Republic of',
	'TH' =&gt; 'Thailand',
	'TG' =&gt; 'Togo',
	'TK' =&gt; 'Tokelau',
	'TO' =&gt; 'Tonga',
	'TT' =&gt; 'Trinidad and Tobago',
	'TN' =&gt; 'Tunisia',
	'TR' =&gt; 'Turkey',
	'TM' =&gt; 'Turkmenistan',
	'TC' =&gt; 'Turks and Caicos Islands',
	'TV' =&gt; 'Tuvalu',
	'UG' =&gt; 'Uganda',
	'UA' =&gt; 'Ukraine',
	'AE' =&gt; 'United Arab Emirates',
	'GB' =&gt; 'United Kingdom (Great Britain)',
	'US' =&gt; 'United States',
	'VI' =&gt; 'United States Virgin Islands',
	'UY' =&gt; 'Uruguay',
	'UZ' =&gt; 'Uzbekistan',
	'VU' =&gt; 'Vanuatu',
	'VA' =&gt; 'Vatican City State',
	'VE' =&gt; 'Venezuela',
	'VN' =&gt; 'Vietnam',
	'WF' =&gt; 'Wallis And Futuna Islands',
	'EH' =&gt; 'Western Sahara',
	'YE' =&gt; 'Yemen',
	'ZR' =&gt; 'Zaire',
	'ZM' =&gt; 'Zambia',
	'ZW' =&gt; 'Zimbabwe'
);</code></pre>
<h3>&lt;select&gt; Example</h3>
<pre><code class="html">&lt;form method="post" action=""&gt;
	&lt;select name="country"&gt;
		&lt;option&gt;&lt;/option&gt;
		&lt;?php
		foreach ($options as $key =&gt; $val)
		{
			?&gt;
			&lt;option value="&lt;?php echo $key; ?&gt;" &lt;?php echo ($_POST['country'] == $key) ? 'selected=""' : ''; ?&gt;&gt;&lt;?php echo $val; ?&gt;&lt;/option&gt;
			&lt;?php
		}
		?&gt;
	&lt;/select&gt;
&lt;/form&gt;</code></pre>
<h3>Demo/Download</h3>
<p><a href="http://websitebuildersresource.com/wp-content/uploads/2010/01/php-country-array.zip">Download</a><br />
<a href="http://websitebuildersresource.com/demos/php-country-array/php-country-array.php" target="_blank">Demo PHP Country Array</a><br />
		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F&amp;title=PHP+Country+Array"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F&amp;title=PHP+Country+Array"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F&amp;title=PHP+Country+Array"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F&amp;headline=PHP+Country+Array"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=PHP+Country+Array&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=PHP+Country+Array&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=PHP+Country+Array&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=PHP+Country+Array&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=PHP+Country+Array&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F&amp;title=PHP+Country+Array&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F24%2Fphp-country-array%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://websitebuildersresource.com/2008/11/23/copy-php-implode-function-with-c-shar/" title="PHP implode() Function with C#">PHP implode() Function with C#</a></li><li><a href="http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/" title="Blank CDATA with PHP and SimpleXML">Blank CDATA with PHP and SimpleXML</a></li><li><a href="http://websitebuildersresource.com/2009/02/07/jquery-select-manipulation-multiple-selects-json-default/" title="jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My">jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My</a></li><li><a href="http://websitebuildersresource.com/2008/12/26/set-php-include-path-in-htaccess/" title="Set PHP Include Path in htaccess">Set PHP Include Path in htaccess</a></li><li><a href="http://websitebuildersresource.com/2008/11/30/add-items-dynamically-to-dotnet-arrays-with-c-sharp/" title="Add Items Dynamically to .NET Arrays with C#">Add Items Dynamically to .NET Arrays with C#</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2010/01/24/php-country-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access @attributes Nodes in SimpleXML Objects</title>
		<link>http://websitebuildersresource.com/2010/01/05/access-attributes-nodes-in-simplexml-objects/</link>
		<comments>http://websitebuildersresource.com/2010/01/05/access-attributes-nodes-in-simplexml-objects/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 20:26:17 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[simplexml]]></category>

		<guid isPermaLink="false">http://websitebuildersresource.com/?p=784</guid>
		<description><![CDATA[Access the [@attributes] in a SimpleXML object with this simple fix.]]></description>
			<content:encoded><![CDATA[<p>To access the [@attributes] in a SimpleXML object use the following code:</p>
<pre><code class="php">$xml = simplexml_load_string($curl_result, 'SimpleXMLElement', LIBXML_NOCDATA);

foreach ($xml-&gt;item as $f)
{
    echo $f-&gt;attributes()-&gt;id . '&lt;br /&gt;';
}</code></pre>
<p>		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F&amp;title=Access+%40attributes+Nodes+in+SimpleXML+Objects"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F&amp;title=Access+%40attributes+Nodes+in+SimpleXML+Objects"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F&amp;title=Access+%40attributes+Nodes+in+SimpleXML+Objects"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F&amp;headline=Access+%40attributes+Nodes+in+SimpleXML+Objects"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=Access+%40attributes+Nodes+in+SimpleXML+Objects&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=Access+%40attributes+Nodes+in+SimpleXML+Objects&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=Access+%40attributes+Nodes+in+SimpleXML+Objects&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=Access+%40attributes+Nodes+in+SimpleXML+Objects&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=Access+%40attributes+Nodes+in+SimpleXML+Objects&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F&amp;title=Access+%40attributes+Nodes+in+SimpleXML+Objects&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F05%2Faccess-attributes-nodes-in-simplexml-objects%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/" title="Blank CDATA with PHP and SimpleXML">Blank CDATA with PHP and SimpleXML</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2010/01/05/access-attributes-nodes-in-simplexml-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blank CDATA with PHP and SimpleXML</title>
		<link>http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/</link>
		<comments>http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:37:43 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[cdata]]></category>
		<category><![CDATA[simplexml]]></category>

		<guid isPermaLink="false">http://websitebuildersresource.com/?p=766</guid>
		<description><![CDATA[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.]]></description>
			<content:encoded><![CDATA[<p>By default CDATA blocks in XML requests using <a href="http://us2.php.net/manual/en/book.simplexml.php" target="_blank">SimpleXML</a> are not returned and the node is blank. Here is an example using an RSS feed from <a href="http://www.devshed.com/" target="_blank">DevShed</a>.</p>
<h2>SimpleXML Default</h2>
<h3>Request</h3>
<pre><code class="php">$url = 'http://www.devshed.com/rss-feeds-11.xml';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 3); 

// Execute, close connection
$curl_result = curl_exec($ch);
curl_close($ch); 

// Convert to SimpleXML
$xml = new SimpleXMLElement($curl_result);
print_r($xml);</code></pre>
<h3>Response</h3>
<p>Notice that the &lt;description&gt; node is blank.</p>
<pre><code class="php">[0] =&gt; SimpleXMLElement Object
(
	[title] =&gt; Exception Handling in PHP
	[pubDate] =&gt; Mon, 04 Jan 2010 09:00:01 -0500
	[link] =&gt; http://www.devshed.com/c/a/PHP/Exception-Handling-in-PHP/?kc=rss
	[description] =&gt; SimpleXMLElement Object
		(
		)
	[guid] =&gt; http://www.devshed.com/c/a/PHP/Exception-Handling-in-PHP/?kc=rss
)</code></pre>
<h2>SimpleXML using simplexml_load_string</h2>
<h3>Request</h3>
<pre><code class="php">$url = 'http://www.devshed.com/rss-feeds-11.xml';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 3); 

// Execute, close connection
$curl_result = curl_exec($ch);
curl_close($ch); 

$xml = simplexml_load_string($curl_result, 'SimpleXMLElement', LIBXML_NOCDATA);
print_r($xml);</code></pre>
<h3>Response</h3>
<p>&lt;description&gt; is now filled in.</p>
<pre><code class="php">[0] =&gt; SimpleXMLElement Object
(
	[title] =&gt; Exception Handling in PHP
	[pubDate] =&gt; Mon, 04 Jan 2010 09:00:01 -0500
	[link] =&gt; http://www.devshed.com/c/a/PHP/Exception-Handling-in-PHP/?kc=rss
	[description] =&gt;
In this second part of a two-part series on error and exception handling in PHP, we focus specifically on handling exceptions. This article is excerpted from chapter 8 of the book Beginning PHP and Oracle: From Novice to Professional, written by W. Jason Gilmore and Bob Bryla (Apress; ISBN: 1590597702).
-  Exception Handling
Languages such as Java, C#, and Python have long been heralded for their efficient error-management abilities, accomplished through the use of exception handling. If you have prior experience working with exception handlers, you likely scratch your head when working with any l...
	[guid] =&gt; http://www.devshed.com/c/a/PHP/Exception-Handling-in-PHP/?kc=rss
)</code></pre>
<h2>Demos</h2>
<p><a href="http://websitebuildersresource.com/demos/blank-cdata-php-simplexml/simplexml-default.php" target="_blank">SimpleXML Default</a><br />
<a href="http://websitebuildersresource.com/demos/blank-cdata-php-simplexml/simplexml-cdata.php" target="_blank">SimpleXML using simplexml_load_string</a></p>
<h2>Download</h2>
<p><a href="http://websitebuildersresource.com/wp-content/uploads/2010/01/blank-cdata-php-simplexml.zip">Zip Archive</a><br />
		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F&amp;title=Blank+CDATA+with+PHP+and+SimpleXML"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F&amp;title=Blank+CDATA+with+PHP+and+SimpleXML"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F&amp;title=Blank+CDATA+with+PHP+and+SimpleXML"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F&amp;headline=Blank+CDATA+with+PHP+and+SimpleXML"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=Blank+CDATA+with+PHP+and+SimpleXML&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=Blank+CDATA+with+PHP+and+SimpleXML&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=Blank+CDATA+with+PHP+and+SimpleXML&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=Blank+CDATA+with+PHP+and+SimpleXML&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=Blank+CDATA+with+PHP+and+SimpleXML&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F&amp;title=Blank+CDATA+with+PHP+and+SimpleXML&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2010%2F01%2F04%2Fblank-cdata-with-php-and-simplexml%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://websitebuildersresource.com/2010/01/24/php-country-array/" title="PHP Country Array">PHP Country Array</a></li><li><a href="http://websitebuildersresource.com/2010/01/05/access-attributes-nodes-in-simplexml-objects/" title="Access @attributes Nodes in SimpleXML Objects">Access @attributes Nodes in SimpleXML Objects</a></li><li><a href="http://websitebuildersresource.com/2009/02/07/jquery-select-manipulation-multiple-selects-json-default/" title="jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My">jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My</a></li><li><a href="http://websitebuildersresource.com/2008/12/26/set-php-include-path-in-htaccess/" title="Set PHP Include Path in htaccess">Set PHP Include Path in htaccess</a></li><li><a href="http://websitebuildersresource.com/2008/11/23/my-essential-developers-toolbox/" title="My Essential Developer&#8217;s Toolbox &#8211; Part I">My Essential Developer&#8217;s Toolbox &#8211; Part I</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set PHP Include Path in htaccess</title>
		<link>http://websitebuildersresource.com/2008/12/26/set-php-include-path-in-htaccess/</link>
		<comments>http://websitebuildersresource.com/2008/12/26/set-php-include-path-in-htaccess/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 17:00:27 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[include_path]]></category>

		<guid isPermaLink="false">http://www.websitebuildersresource.com/?p=431</guid>
		<description><![CDATA[If you do not want to change the include_path directories (or you don&#8217;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 [...]]]></description>
			<content:encoded><![CDATA[<p>If you do not want to change the include_path directories (or you don&#8217;t have access to php.ini) you can still set the include_path value within your root .htaccess file.</p>
<h2>Update/Create /doc_root/.htaccess</h2>
<p><strong>Unix/Linux Servers</strong></p>
<pre><code class="html">php_value include_path "/path/to/include"
</code></pre>
<p><strong>Windows Servers</strong></p>
<pre><code class="html">php_value include_path "C:/path/to/include"
</code></pre>
<h2>PHP</h2>
<p>To call the include within PHP do the following:</p>
<pre><code class="php">require_once('file.php');
</code></pre>
<p>The file above is in /doc_root/include/file.php</p>
<h3>Options</h3>
<p><strong>Multiple include directories</strong></p>
<p>If you have multiple include directories you can chain them with the separator for your OS, : (*nix), ; (Windows).</p>
<pre><code class="html">php_value include_path "/path/to/include:/path/to/include2"
</code></pre>
<p><strong>Call files outside include directory</strong></p>
<p>You can also traverse your directory structure if you need to call a file that is outside of the include_path.</p>
<p><em>file.php in /doc_root/include/file.php</em></p>
<pre><code class="html">require_once('./include/file.php');
</code></pre>
<p><em>file.php in /doc_root/test/file.php</em></p>
<pre><code class="html">require_once('./test/file.php');
</code></pre>
<p><em>file.php in /test/file.php, Outside, up one level from /doc_root</em></p>
<pre><code class="html">require_once('../test/file.php');
</code></pre>
<p>		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F&amp;title=Set+PHP+Include+Path+in+htaccess"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F&amp;title=Set+PHP+Include+Path+in+htaccess"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F&amp;title=Set+PHP+Include+Path+in+htaccess"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F&amp;headline=Set+PHP+Include+Path+in+htaccess"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=Set+PHP+Include+Path+in+htaccess&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=Set+PHP+Include+Path+in+htaccess&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=Set+PHP+Include+Path+in+htaccess&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=Set+PHP+Include+Path+in+htaccess&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=Set+PHP+Include+Path+in+htaccess&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F&amp;title=Set+PHP+Include+Path+in+htaccess&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F26%2Fset-php-include-path-in-htaccess%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://websitebuildersresource.com/2010/01/24/php-country-array/" title="PHP Country Array">PHP Country Array</a></li><li><a href="http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/" title="Blank CDATA with PHP and SimpleXML">Blank CDATA with PHP and SimpleXML</a></li><li><a href="http://websitebuildersresource.com/2009/02/07/jquery-select-manipulation-multiple-selects-json-default/" title="jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My">jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My</a></li><li><a href="http://websitebuildersresource.com/2008/12/18/removeforce-www-on-your-domain-and-301-redirect/" title="Remove/Force www on Your Domain and 301 Redirect">Remove/Force www on Your Domain and 301 Redirect</a></li><li><a href="http://websitebuildersresource.com/2008/11/23/my-essential-developers-toolbox/" title="My Essential Developer&#8217;s Toolbox &#8211; Part I">My Essential Developer&#8217;s Toolbox &#8211; Part I</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2008/12/26/set-php-include-path-in-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Smarty Template Example</title>
		<link>http://websitebuildersresource.com/2008/12/20/simple-smarty-template-example/</link>
		<comments>http://websitebuildersresource.com/2008/12/20/simple-smarty-template-example/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 07:20:40 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[Smarty]]></category>

		<guid isPermaLink="false">http://www.websitebuildersresource.com/?p=382</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>For those newer to the Smarty Template Engine I thought I would make a simple example to help get started.</p>
<h2>Download and Install</h2>
<h3>Download</h3>
<p>Grab the Smarty example <a href="http://www.websitebuildersresource.com/wp-content/uploads/2008/12/smarty-simple.zip">here</a>. This is using the latest version as of this post, v2.6.22. <a href="http://www.smarty.net/download.php" target="_blank">Go here</a> if you need an alternate version.</p>
<h3>Install</h3>
<p>Extract the downloaded archive to the document root of your web server. This is sometimes public_html if you have access to an FTP folder that is a level lower than the document root.</p>
<h3>Folder Permissions</h3>
<p>In order for the templates to compile the web server user must have write access to the doc_root/include/smarty/templates_c folder.</p>
<h3>Move Include Folder (Optional)</h3>
<p>If you need to install the include folder not in document root do the following:</p>
<p><strong>Open include/config.php and change the $site_root variable to match the full path to where you are moving the include folder. </strong></p>
<p>For example, you need to install in the folder test, which is one folder above document root.</p>
<pre><code class="html">doc_root/test/include</code></pre>
<p>Change $site_root to:</p>
<pre><code class="php">$site_root = $_SERVER['DOCUMENT_ROOT'] . '/test';</code></pre>
<h3>Enable Caching (Optional)</h3>
<p>If you want to enable caching to help with performance do the following:</p>
<p><strong>Open include/config.php and change the caching setting.</strong></p>
<pre><code class="php">// Enable caching
$smarty-&gt;caching = 1;</code></pre>
<p>In order for caching to work the doc_root/include/smarty/cache folder must have write permission by the web server user.</p>
<p>Here is <a href="http://www.smarty.net/manual/en/variable.cache.dir.php" target="_blank">more information</a> regarding the cache_dir directory.</p>
<h2>Test</h2>
<p>Fire up your favorite browser and check if the following shows up.</p>
<p><a href="http://www.websitebuildersresource.com/wp-content/uploads/2008/12/smarty-1.png"><img class="alignnone size-medium wp-image-386" title="smarty-1" src="http://www.websitebuildersresource.com/wp-content/uploads/2008/12/smarty-1-300x292.png" alt="" width="300" height="292" /></a></p>
<h2>Smarty Variables</h2>
<p>You can create any number of variables to be used within your templates. You assign values within your PHP code and display the output within your template. This helps separate the logic and presentation layers for cleaner code and maintainability.</p>
<h3>Change the Title</h3>
<p>Let&#8217;s change the title to read <em>Hello World</em>.</p>
<p>Open doc_root/index.php and change the title variable value from:</p>
<p><code class="php">$smarty-&gt;assign('title', 'Welcome smarty pants.');</code></p>
<p>To:</p>
<p><code class="php">$smarty-&gt;assign('title', 'Hello world.');</code></p>
<p>Save and view the page again to see your change.</p>
<p><a href="http://www.websitebuildersresource.com/wp-content/uploads/2008/12/smarty-2.png"><img class="alignnone size-medium wp-image-392" title="smarty-2" src="http://www.websitebuildersresource.com/wp-content/uploads/2008/12/smarty-2-300x292.png" alt="" width="300" height="292" /></a></p>
<p>Smarty variables are in the following format:</p>
<p><code class="php">{$title}</code></p>
<p>Once you assign your variable in the PHP page you can use the new variable in the assigned template (your .tpl files) anywhere and as many times necessary.</p>
<h3>Template Location</h3>
<p>All of the templates for the example are located in doc_root/include/smarty/templates. When you call a template to display the path is relative to the setting in config.php.</p>
<p>If you want to add a new template in a sub folder such as <em>about/index.tpl</em> you will need to call the template as follows in your index.php, or new PHP file:</p>
<p><code class="php">$smarty-&gt;display('about/index.tpl');</code></p>
<h2>Download and Demo</h2>
<p>View the example in <a href="http://www.websitebuildersresource.com/demos/smarty-simple/" target="_blank">action</a>.</p>
<p>Grab your copy <a href="http://www.websitebuildersresource.com/wp-content/uploads/2008/12/smarty-simple.zip">here</a>.<br />
		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F&amp;title=Simple+Smarty+Template+Example"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F&amp;title=Simple+Smarty+Template+Example"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F&amp;title=Simple+Smarty+Template+Example"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F&amp;headline=Simple+Smarty+Template+Example"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=Simple+Smarty+Template+Example&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=Simple+Smarty+Template+Example&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=Simple+Smarty+Template+Example&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=Simple+Smarty+Template+Example&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=Simple+Smarty+Template+Example&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F&amp;title=Simple+Smarty+Template+Example&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F12%2F20%2Fsimple-smarty-template-example%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2008/12/20/simple-smarty-template-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Essential Developer&#8217;s Toolbox &#8211; Part I</title>
		<link>http://websitebuildersresource.com/2008/11/23/my-essential-developers-toolbox/</link>
		<comments>http://websitebuildersresource.com/2008/11/23/my-essential-developers-toolbox/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 20:17:56 +0000</pubDate>
		<dc:creator>Jason Maletsky</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[navicat]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.websitebuildersresource.com/?p=63</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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).</p>
<h2>IDEs (Integrated Development Environment)*</h2>
<h3>Microsoft ASP.NET</h3>
<p>Both of the IDEs below are top notch and my personal favorites for developing against Microsoft technologies. Both have incredible built in debuggers including JavaScript debugging, drag and drop Web Control functionality, direct SQL Server support, source control support, ASP.NET AJAX integration, the list goes on. Click on the links below to view a full feature list.</p>
<p><strong>Microsoft Visual Web Developer &#8211; Free</strong><br />
<a href="http://www.microsoft.com/express/vwd/" target="_blank">http://www.microsoft.com/express/vwd/</a></p>
<p><strong>Microsoft Visual Studio</strong><br />
<a href="http://msdn.microsoft.com/en-us/vstudio/products/default.aspx" target="_blank">http://msdn.microsoft.com/en-us/vstudio/products/default.aspx</a></p>
<h3>PHP, Perl, Ruby, Java and Other Open Source Technologies</h3>
<p>There are a lot more open source and commercial IDEs available for the Open Source technologies that are not listed here and quick search on <a href="http://www.google.com/search?q=open+source+ide" target="_blank">Google</a> will help if you are looking for something in particular.</p>
<p><span id="more-63"></span></p>
<p>I only develop against PHP in the Open Source space so I will list PHP IDEs that I use.</p>
<p><strong>Eclipse PDT Project &#8211; Free &#8211; Cross Platform</strong><br />
<a href="http://www.eclipse.org/pdt/" target="_blank">http://www.eclipse.org/pdt/</a><br />
This is an incredible Open Source (free) project that will give most developers just about every feature you will need. The one thing I must mention about <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> is that it is has a huge list of plugins that extend it&#8217;s base functionality from integrated database support, just about every programming language support, integrated remote server clients and much more.<a href="http://www.eclipse.org/pdt/" target="_blank"><br />
</a></p>
<p><strong>EasyEclipse &#8211; Free</strong><strong> &#8211; Cross Platform</strong><br />
<a href="http://www.easyeclipse.org/site/home/index.html" target="_blank">http://www.easyeclipse.org/site/home/index.html</a><br />
Similar to Eclipse PDT but with the most common used plugins already installed. The base Eclipse version may be behind from the latest version.<a href="http://www.easyeclipse.org/site/home/index.html" target="_blank"><br />
</a></p>
<p><strong>Zend Studio Professional for Eclipse</strong><strong> &#8211; Cross Platform</strong><br />
<a href="http://www.zend.com/en/products/studio/" target="_blank">http://www.zend.com/en/products/studio/</a><br />
My experience with Zend Studio Professional for Eclipse has been mixed. It has all of the base functionality as the Eclipse PDT project (which a lot of Zend Studio is based on) as well as hooks into their proprietary products such as Zend Core and includes support for the PHP/Java bridge.</p>
<p>I love the extra functionality Zend Studio for Eclipse comes with that Eclipse PDT doesn&#8217;t have but it is slower and more buggy (crashes and constant workspace builds that run forever). Beyond a few bugs I encounter on a regular basis I believe it is worth the cost of a license since you do get support directly from Zend, a lot of incredible functionality and regular updates from Zend.</p>
<p><strong>Aptana &#8211; Free</strong><strong> &#8211; Cross Platform</strong><br />
<a href="http://www.aptana.com/" target="_blank">http://www.aptana.com/</a><br />
This is my favorite Eclipse plugin that can also be installed as a stand-alone application. I originally used this plugin for it&#8217;s excellent support for HTML, CSS and JavaScript but over time they have included some great tools such as their <a href="http://www.aptana.com/jaxer" target="_blank">Jaxer Server</a> and <a href="http://www.aptana.com/cloud" target="_blank">Aptana Cloud</a>. If you are a Zend Studio user you will love the improvement of HTML, CSS and JavaScript support this plugin has over the built in tools. This plugin does support several other languages.</p>
<h2>Database Management</h2>
<h3>Microsoft SQL Server</h3>
<p><strong>SQL Server Management Studio Express &#8211; Free</strong><br />
<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;displaylang=en</a><br />
This is a great tool to management your SQL Server Express installation. This is a nice addition by Microsoft since the old Express version (MSDE, equivalent to SQL Server 2000) did not come with any managment software.</p>
<p>The biggest drawback to this is it does not have any direct method to backup or export all of your database data. I suggest grabbing a copy of the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=3C856B93-369F-4C6F-9357-C35384179543&amp;displaylang=en" target="_blank">SQL Server Toolkit</a> and use DTS to handle that or use the tool available from <a href="/2008/11/21/mysqldump-utility-for-sql-server/"><span>Peter         A. Bromberg</span></a>.</p>
<p><strong>SQL Server Management Studio</strong><br />
<a href="http://msdn.microsoft.com/en-us/library/ms174173.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms174173.aspx</a><br />
This is the full version of the SQL Server tools and has everything you need to manage your SQL Server data. A copy usually comes with a full version of Visual Studio.</p>
<h3>MySQL</h3>
<p><strong>MySQL GUI Tools &#8211; Free</strong><br />
<a href="http://dev.mysql.com/downloads/gui-tools/5.0.html" target="_blank">http://dev.mysql.com/downloads/gui-tools/5.0.html</a><br />
MySQL has provided some basic tools to handle your MySQL installation from server and resource management to a query tool. Very handy but very basic as well. Does not include methods for direct export or import of data.</p>
<p><strong>Navicat &#8211; Cross Platform</strong><br />
<a href="http://www.navicat.com/" target="_blank">http://www.navicat.com/</a><br />
This is the best MySQL management tool I have used. Very straight forward interface with everything you need at your fingertips. Has many data management tools with the ability to import, export, migrate data to and from other MySQL servers, schedule backups, create reports and much more. This is another commercial application that is worth the cost of the license.</p>
<p>They also provide versions for Oracle and PostgreSQL.</p>
<h2>Glossary*</h2>
<p>IDE<br />
<a href="http://en.wikipedia.org/wiki/Integrated_development_environment" target="_blank">http://en.wikipedia.org/wiki/Integrated_development_environment</a></p>
<h2>Continued</h2>
<p><a href="/2008/11/25/my-essential-developers-toolbox-part-ii/">Read on to Part II of the My Essential Developer&#8217;s Toolbox series of posts.</a><br />
		<script type="text/javascript"><!--
            google_ad_client = "pub-1943674323840609";
            google_ad_slot = "4085228747";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
        </script><br />
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></p>
<div class="lightsocial_container"><a href="http://digg.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F&amp;title=My+Essential+Developer%27s+Toolbox+-+Part+I"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a href="http://www.reddit.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F&amp;title=My+Essential+Developer%27s+Toolbox+-+Part+I"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F&amp;title=My+Essential+Developer%27s+Toolbox+-+Part+I"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F&amp;headline=My+Essential+Developer%27s+Toolbox+-+Part+I"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a href="http://www.dzone.com/links/add.html?title=My+Essential+Developer%27s+Toolbox+-+Part+I&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a href="http://www.facebook.com/sharer.php?t=My+Essential+Developer%27s+Toolbox+-+Part+I&amp;u=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a href="http://delicious.com/save?title=My+Essential+Developer%27s+Toolbox+-+Part+I&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a href="http://www.dotnetkicks.com/kick/?title=My+Essential+Developer%27s+Toolbox+-+Part+I&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a href="http://dotnetshoutout.com/Submit?title=My+Essential+Developer%27s+Toolbox+-+Part+I&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F&amp;title=My+Essential+Developer%27s+Toolbox+-+Part+I&amp;summary=&amp;source="><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a href="http://www.technorati.com/faves?add=http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a href="http://twitter.com/home?status=Reading+http%3A%2F%2Fwebsitebuildersresource.com%2F2008%2F11%2F23%2Fmy-essential-developers-toolbox%2F"><img src="http://websitebuildersresource.com/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;</div><h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://websitebuildersresource.com/2010/01/24/php-country-array/" title="PHP Country Array">PHP Country Array</a></li><li><a href="http://websitebuildersresource.com/2010/01/04/blank-cdata-with-php-and-simplexml/" title="Blank CDATA with PHP and SimpleXML">Blank CDATA with PHP and SimpleXML</a></li><li><a href="http://websitebuildersresource.com/2009/02/07/jquery-select-manipulation-multiple-selects-json-default/" title="jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My">jQuery &lt;select&gt; Manipulation, Multiple Selects with JSON, Set Defaults, Oh My</a></li><li><a href="http://websitebuildersresource.com/2009/01/07/eclipse-pdt-php-development-tools-2-0-released/" title="Eclipse PDT (PHP Development Tools) 2.0 Released">Eclipse PDT (PHP Development Tools) 2.0 Released</a></li><li><a href="http://websitebuildersresource.com/2009/01/03/format-string-with-stringformat-and-c-sharp/" title="Format String with String.Format and C#">Format String with String.Format and C#</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://websitebuildersresource.com/2008/11/23/my-essential-developers-toolbox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
