<?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>iDimensionz &#187; PHP</title>
	<atom:link href="http://www.idimensionz.com/blog/category/programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.idimensionz.com/blog</link>
	<description>Professional web site programming and design.  Affordable web site hosting.</description>
	<lastBuildDate>Fri, 24 Apr 2009 19:07:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Let the April Fools Stunts Begin!</title>
		<link>http://www.idimensionz.com/blog/2009/04/01/let-the-april-fools-stunts-begin/</link>
		<comments>http://www.idimensionz.com/blog/2009/04/01/let-the-april-fools-stunts-begin/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 13:35:44 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[April Fools]]></category>
		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/?p=45</guid>
		<description><![CDATA[As you are probably aware, today is April 1st a.k.a. April Fools Day.   A day when people try to make fools of other people.   If you weren&#8217;t aware or forgot, you may have already been tricked into believing or doing something crazy and didn&#8217;t even realize it.  Techie types are stereotyped as being [...]]]></description>
			<content:encoded><![CDATA[<p>As you are probably aware, today is April 1st a.k.a. April Fools Day.   A day when people try to make fools of other people.   If you weren&#8217;t aware or forgot, you may have already been tricked into believing or doing something crazy and didn&#8217;t even realize it.  Techie types are stereotyped as being boring, straight-laced, and basically no fun.  Today is a day to show a different side.  And who else to start the day off than Zend.<span id="more-45"></span></p>
<p>Yes, the company in charge of our beloved PHP programming language has bolted out of the gate with today&#8217;s first joke.   I was verifying the version of PHP on my dev server via the phpinfo() function when I noticed something strange about the PHP logo.   At first, I thought my server may have been hacked or infected with a virus.   So, I checked where the logo image was coming from and, sure enough, it was coming from the php.net site.   So, I went to PHP&#8217;s site (<a href="http://www.php.net" target="_blank">http://www.php.net</a>) and the logo doesn&#8217;t look quite right there either.  Have a look for yourself.  I contacted PHP but was told that the logo was supposed to look that way.   Yeah&#8230;right!   Oh, well, that&#8217;s only my first fooling of the day.  Good one, Zend!  If you find any other techie site&#8217;s pulling pranks today, let&#8217;s hear about &#8216;em in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2009/04/01/let-the-april-fools-stunts-begin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Date and Time Functions in PHP 5.3.0</title>
		<link>http://www.idimensionz.com/blog/2009/03/30/new-date-and-time-functions-in-php-530/</link>
		<comments>http://www.idimensionz.com/blog/2009/03/30/new-date-and-time-functions-in-php-530/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 13:09:04 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[5.3]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/?p=34</guid>
		<description><![CDATA[While browsing through the PHP documentation, I came across some very useful new functions available in PHP 5.3.0 for working with dates and times.  One of my current projects requires working with a date range.  There are various ways to do this.  I was originally going to use MySQL&#8217;s DATE_DIFF() function to calculate the number [...]]]></description>
			<content:encoded><![CDATA[<p>While browsing through the PHP documentation, I came across some very useful new functions available in PHP 5.3.0 for working with dates and times.  <span id="more-34"></span>One of my current projects requires working with a date range.  There are various ways to do this.  I was originally going to use MySQL&#8217;s DATE_DIFF() function to calculate the number days in the range but connecting to the database for this functionality was obviously not the best solution.  I browsed the PHP documentation and found a date_diff() function that is part of PHP 5.3.0.  This function is just an alias of the DateTime class&#8217;s diff() function and returns a DateInterval instance which can be used to format the result.  The DateTime class is part of the <a title="PHP Date and Time extension" href="http://php.net/datetime" target="_blank">ext/date</a> extension.  I&#8217;m looking forward to the stable 5.3.0 release to be able to take advantage of this functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2009/03/30/new-date-and-time-functions-in-php-530/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Framework now available to iDimensionz Web Hosting Customers</title>
		<link>http://www.idimensionz.com/blog/2008/06/05/zend-framework-now-available-to-idimensionz-web-hosting-customers/</link>
		<comments>http://www.idimensionz.com/blog/2008/06/05/zend-framework-now-available-to-idimensionz-web-hosting-customers/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 13:49:29 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[iDimensionz]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/?p=7</guid>
		<description><![CDATA[iDimensionz made version 1.5.2 of the Zend Framework available to all of its hosting customers today.  According to the Zend Framework web site, &#8220;Zend Framework is focused on building     more secure, reliable, and modern Web 2.0 applications &#38; web services, and     consuming widely available APIs from leading [...]]]></description>
			<content:encoded><![CDATA[<p>iDimensionz made version 1.5.2 of the Zend Framework available to all of its hosting customers today.  According to the <a href="http://framework.zend.com" target="_blank">Zend Framework</a> web site, &#8220;Zend Framework is focused on building     more secure, reliable, and modern Web 2.0 applications &amp; web services, and     consuming widely available APIs from leading vendors&#8221;.  To view the current version of Zend Framework available from iDimensionz, visit our <a href="http://www.iDimensionz.com/ZendFramework/" target="_blank">Zend Framework</a> page.  That page uses the Zend_Version class to display the current default version available.  Other versions may be available.  Contact iDimensionz Support for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2008/06/05/zend-framework-now-available-to-idimensionz-web-hosting-customers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting PHP PDT 1.0 to work in Eclipse Europa</title>
		<link>http://www.idimensionz.com/blog/2007/07/04/getting-php-pdt-10-to-work-in-eclipse-europa/</link>
		<comments>http://www.idimensionz.com/blog/2007/07/04/getting-php-pdt-10-to-work-in-eclipse-europa/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 02:55:57 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[PDT]]></category>
		<category><![CDATA[SimplyMEPIS]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/2007/07/04/getting-php-pdt-10-to-work-in-eclipse-europa/</guid>
		<description><![CDATA[After downloading and installing the full version of the Eclipse PDT (PHP Development Tools), I was ready to start using Eclipse in my SimplyMEPIS (basically Ubuntu) distro to edit PHP code.  To my surprise, the PHP perspective was not working. Eclipse seemed to recognize that it was installed, but wouldn&#8217;t utilize it.  Starting [...]]]></description>
			<content:encoded><![CDATA[<p>After downloading and installing the full version of the Eclipse PDT (PHP Development Tools), I was ready to start using Eclipse in my SimplyMEPIS (basically Ubuntu) distro to edit PHP code.  To my surprise, the PHP perspective was not working.<span id="more-5"></span> Eclipse seemed to recognize that it was installed, but wouldn&#8217;t utilize it.  Starting Eclipse with the &#8220;-clean&#8221; option didn&#8217;t make any difference (except that the GUI looked slightly different).  I found out that PDT requires Java 5 (or higher).  I already had Java 6 installed, but it wasn&#8217;t being used.  Java 4.2 was still being used.  I tracked down the symbolic link for the &#8220;java&#8221; command, renamed it (in case I messed up and needed it back), and created a new symbolic link to my Java 6 java command.  I checked the Java version with &#8220;java -version&#8221; which verified it was now using Java 6.  When I fired up Eclipse it now is able to utilize the PDT.</p>
<p>An interesting side note&#8230;when PDT wasn&#8217;t working, Eclipse was defaulting to using KWrite as the (external) editor for PHP files.  I was impressed with KWrite&#8217;s built-in syntax highlighting and code folding capabilities.   I will definitely keep KWrite in mind when I need to make a quick change to a PHP file.</p>
<p>Visit <a title="Eclipse PDT" href="http://www.eclipse.org/pdt/" target="_blank">http://www.eclipse.org/pdt/</a> for more information about the Eclipse PDT project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2007/07/04/getting-php-pdt-10-to-work-in-eclipse-europa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating HTML formatted e-mail in PHP</title>
		<link>http://www.idimensionz.com/blog/2007/03/04/creating-html-formatted-e-mail-in-php/</link>
		<comments>http://www.idimensionz.com/blog/2007/03/04/creating-html-formatted-e-mail-in-php/#comments</comments>
		<pubDate>Mon, 05 Mar 2007 04:15:21 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/2007/03/04/creating-html-formatted-e-mail-in-php/</guid>
		<description><![CDATA[Here is some example code for sending HTML formatted e-mail via the PHP mail function:
$from="YourFromAddress@yourdomain.com";
 $to="SendThisTo@TheirDomain.com";
 $body="&#60;html&#62;&#60;body&#62;Add your HTML code here&#60;/body&#62;&#60;/html&#62;";
 $headers = "MIME-Version: 1.0\r\n";
 $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
 $headers .= "From: $from &#60;$from&#62;\r\n";
 $headers .= "Reply-To: $from &#60;$from&#62;\r\n";
 $headers .= "X-Mailer: PHP\r\n";
 mail($to,"Put your e-mail subject here!", $body, $headers);
]]></description>
			<content:encoded><![CDATA[<p><span class="postbody">Here is some example code for sending HTML formatted e-mail via the PHP mail function:</span></p>
<blockquote><p><code>$from="YourFromAddress@yourdomain.com";</code><br />
<code> $to="SendThisTo@TheirDomain.com";</code><br />
<code> $body="&lt;html&gt;&lt;body&gt;Add your HTML code here&lt;/body&gt;&lt;/html&gt;";</code><br />
<code> $headers = "MIME-Version: 1.0\r\n";</code><br />
<code> $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";</code><br />
<code> $headers .= "From: $from &lt;$from&gt;\r\n";</code><br />
<code> $headers .= "Reply-To: $from &lt;$from&gt;\r\n";</code><br />
<code> $headers .= "X-Mailer: PHP\r\n";</code><br />
<code> mail($to,"Put your e-mail subject here!", $body, $headers);</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2007/03/04/creating-html-formatted-e-mail-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

