<?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; Programming</title>
	<atom:link href="http://www.idimensionz.com/blog/category/programming/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>Happy Ada Lovelace Day!</title>
		<link>http://www.idimensionz.com/blog/2009/03/24/happy-ada-lovelace-day/</link>
		<comments>http://www.idimensionz.com/blog/2009/03/24/happy-ada-lovelace-day/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 19:17:06 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ada]]></category>
		<category><![CDATA[Ada Lovelace]]></category>
		<category><![CDATA[Ada programming language]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/?p=28</guid>
		<description><![CDATA[Being a web programming company, we feel we would be remiss in our duties (and honor) if we did not celebrate Ada Lovelace Day.  This day has been set aside to celebrate and honor all women &#8220;excelling in technology&#8221;.  Fortunately, technology is a gender neutral &#8220;sport&#8221; where women can participate and excel on a level [...]]]></description>
			<content:encoded><![CDATA[<p>Being a web programming company, we feel we would be remiss in our duties (and honor) if we did not celebrate Ada Lovelace Day.  <span id="more-28"></span>This day has been set aside to celebrate and honor all women &#8220;excelling in technology&#8221;.  Fortunately, technology is a gender neutral &#8220;sport&#8221; where women can participate and excel on a level playing field with men.  As technologists, we welcome and encourage the advancements that women bring to technology.</p>
<p>For more information about this day, please visit <a title="Ada Lovelace Day" href="http://findingada.com/" target="_blank">http://findingada.com/</a> .</p>
<p>For more information about Ada&#8217;s programming language namesake, please visit <a title="Ada Programming Language" href="http://en.wikipedia.org/wiki/Ada_(programming_language)" target="_blank">http://en.wikipedia.org/wiki/Ada_(programming_language)</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2009/03/24/happy-ada-lovelace-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with Dojo tabs</title>
		<link>http://www.idimensionz.com/blog/2008/09/19/fun-with-dojo-tabs/</link>
		<comments>http://www.idimensionz.com/blog/2008/09/19/fun-with-dojo-tabs/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 18:34:15 +0000</pubDate>
		<dc:creator>iDimensionz Admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dojo]]></category>
		<category><![CDATA[Tab]]></category>
		<category><![CDATA[TabContainer]]></category>

		<guid isPermaLink="false">http://www.idimensionz.com/blog/?p=8</guid>
		<description><![CDATA[I recently had a need (not a fleeting need but a resolute need&#8230;PotC reference) to create a page containing some tabs and wanted to use Dojo for the job.  Dojo worked well for this application.  However, Dojo&#8217;s TabContainer displays tabs starting at the left of the container.  I wanted the tabs to align to the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a need (not a fleeting need but a resolute need&#8230;PotC reference) to create a page containing some tabs and wanted to use <a href="http://dojotoolkit.org" target="_blank">Dojo</a> for the job.  Dojo worked well for this application.  However, Dojo&#8217;s TabContainer displays tabs starting at the left of the container.  I wanted the tabs to align to the right side of the container.<span id="more-8"></span></p>
<p>Here&#8217;s what a normal Dojo TabContainer would look like (by the way, I&#8217;m using the &#8220;soria&#8221; theme):</p>
<div id="attachment_9" class="wp-caption alignnone" style="width: 417px"><img class="size-full wp-image-9" title="Dojo TabContainer" src="http://www.idimensionz.com/blog/wp-content/uploads/2008/09/tabsnormal.png" alt="Dojo TabContainer with the horizontal tabs on the left." width="407" height="137" /><p class="wp-caption-text">Dojo TabContainer with the horizontal tabs on the left.</p></div>
<p>After a bit of CSS trial and error (made easier with the use of Firefox&#8217;s Firebug plugin utilizing its &#8220;edit&#8221; mode), I finally figured out a simple solution to my problem.  With Firebug, I was able to see that the class being used for each tab was called dijitTab.  So, I simply added the following CSS to my page to get the tabs to align to the right side:</p>
<blockquote>
<pre>.dijitTab {
   float:right;
}</pre>
</blockquote>
<p>Great!  Now all my tabs were on the right side of the container. But, something wasn&#8217;t right&#8230;they were in reverse order.</p>
<div id="attachment_10" class="wp-caption alignnone" style="width: 417px"><a href="http://www.idimensionz.com/blog/wp-content/uploads/2008/09/tabsrightreversed.png"><img class="size-full wp-image-10" title="Dojo TabContainer" src="http://www.idimensionz.com/blog/wp-content/uploads/2008/09/tabsrightreversed.png" alt="Dojo TabContainer with horizontal tab on right but in reverse order." width="407" height="138" /></a><p class="wp-caption-text">Dojo TabContainer with horizontal tab on right but in reverse order.</p></div>
<p>This is because Tab1 was defined first and was getting floated to the far right.  Tab2 was defined next and getting floated right, but to the left of Tab1, ditto with Tab3.  To fix this, I just rearranged the HTML to define Tab3 first, then Tab2 and finally Tab1.  This resulted in Tab3 being floated to the far right of the container, Tab2 being floated right (left of Tab3) and Tab1 floating right (to the left of Tab2).  Voila!  The result I was looking for.</p>
<div id="attachment_11" class="wp-caption alignnone" style="width: 416px"><img class="size-full wp-image-11" title="Dojo TabContainer" src="http://www.idimensionz.com/blog/wp-content/uploads/2008/09/tabsrightside.png" alt="Dojo TabContainer with horizontal tabs on right side in correct order." width="406" height="138" /><p class="wp-caption-text">Dojo TabContainer with horizontal tabs on right side in correct order.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.idimensionz.com/blog/2008/09/19/fun-with-dojo-tabs/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>

