<?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>George&#039;s Technology Blog &#187; Web Design</title>
	<atom:link href="http://imblogginghere.com/techblog/articles/webdesign/feed/" rel="self" type="application/rss+xml" />
	<link>http://imblogginghere.com/techblog</link>
	<description>» Smart Phones, Web Design, Google or whatever</description>
	<lastBuildDate>Thu, 15 Jul 2010 14:22:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using PHP to convert a string to lowercase</title>
		<link>http://imblogginghere.com/techblog/201007/webdesign/using-php-to-convert-a-string-to-lowercase/</link>
		<comments>http://imblogginghere.com/techblog/201007/webdesign/using-php-to-convert-a-string-to-lowercase/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 14:20:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[ph]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=1029</guid>
		<description><![CDATA[At times you may need to change a string to all lowercase letters, here is the way to do that (2 samples including one practical application):
SYNTAX: string strtolower (string $mystring);
$myLowercaseString = strtolower ($mystring);
As with all PHP, test to make sure you've implemented correctly. Comments, questions or suggestions? Please leave a comment.
]]></description>
			<content:encoded><![CDATA[<p>At times you may need to change a string to all lowercase letters, here is the way to do that (2 samples including one practical application):</p>
<blockquote><p><strong>SYNTAX:</strong> <em>string</em> strtolower (<em>string</em> $mystring);</p>
<p>$myLowercaseString = strtolower ($mystring);</p></blockquote>
<p>As with all PHP, test to make sure you've implemented correctly. Comments, questions or suggestions? Please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201007/webdesign/using-php-to-convert-a-string-to-lowercase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP to redirect to another page</title>
		<link>http://imblogginghere.com/techblog/201006/webdesign/using-php-to-redirect-to-another-page/</link>
		<comments>http://imblogginghere.com/techblog/201006/webdesign/using-php-to-redirect-to-another-page/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 20:37:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=1007</guid>
		<description><![CDATA[Using PHP to redirect to another page is a common task, especially when you are working with email forms. Fill the form out, process it, then redirect to a "thank you" page:
&#60;?php
header( "Location: http://www.example.com" ) ;
exit;
?&#62;
You can also use variables for the URL like so:
&#60;?php
$destURL = "http://www.example.com";
header( "Location: " . $destURL ) ;
exit;
?&#62;
NOTE: The code [...]]]></description>
			<content:encoded><![CDATA[<p>Using PHP to redirect to another page is a common task, especially when you are working with email forms. Fill the form out, process it, then redirect to a "thank you" page:</p>
<blockquote style="margin-bottom:50px;"><p><strong><span style="color: #ff0000;">&lt;?php</span></strong><br />
<span style="color: #ff6600;">header( "Location: http://www.example.com" ) ;<br />
exit;</span><br />
<strong><span style="color: #ff0000;">?&gt;</span></strong></p></blockquote>
<p>You can also use variables for the URL like so:</p>
<blockquote style="margin-bottom:50px;"><p><strong><span style="color: #ff0000;">&lt;?php</span></strong><br />
<span style="color: #ff6600;">$destURL = "http://www.example.com";<br />
header( "Location: " . $destURL ) ;<br />
exit;</span><br />
<strong><span style="color: #ff0000;">?&gt;</span></strong></p></blockquote>
<p><strong>NOTE:</strong> The code above has to be processed before any HTML headers, so it needs  to be placed above ANY HTML code.</p>
<p><strong>NOTE 2:</strong> <em>Watch the code above, depending upon my current CSS in my current theme the single quotes or even double quote may change to fancy quotes which will need to be edited if you cut-n-paste the code.</em></p>
<p><strong>MORE</strong> info available on PHP.net's <a href="http://php.net/manual/en/function.header.php" target="_blank">header manual</a> page</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201006/webdesign/using-php-to-redirect-to-another-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PHP to grab the Referer</title>
		<link>http://imblogginghere.com/techblog/201006/webdesign/using-php-to-grab-the-referer/</link>
		<comments>http://imblogginghere.com/techblog/201006/webdesign/using-php-to-grab-the-referer/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 19:52:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=1000</guid>
		<description><![CDATA[You can use PHP to track how someone got to a specific page by grabbing the referring page, called the referer. Use this code to get that info:
&#60;?php
$myReferer = $_SERVER['HTTP_REFERER'];
?&#62;
NOTE: Watch the code above, depending upon my current CSS in my current theme the single quotes or even double quote may change to fancy quotes [...]]]></description>
			<content:encoded><![CDATA[<p>You can use PHP to track how someone got to a specific page by grabbing the referring page, called the referer. Use this code to get that info:</p>
<blockquote style="margin-bottom:50px;"><p><span style="color: #ff6600;"><strong>&lt;?php</strong></span><br />
<span style="color: #ff0000;">$myReferer = $_SERVER['HTTP_REFERER'];</span><br />
<span style="color: #ff6600;"><strong>?&gt;</strong></span></p></blockquote>
<p><strong>NOTE</strong>: <em>Watch the code above, depending upon my current CSS in my current theme the single quotes or even double quote may change to fancy quotes which will need to be edited if you cut-n-paste the code.</em></p>
<p><em><strong>MORE</strong></em> info available on PHP.net's <a href="http://www.php.net/manual/en/reserved.variables.server.php" target="_blank">$_SERVER manual</a> page</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201006/webdesign/using-php-to-grab-the-referer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: All Caps</title>
		<link>http://imblogginghere.com/techblog/201006/webdesign/css-all-caps/</link>
		<comments>http://imblogginghere.com/techblog/201006/webdesign/css-all-caps/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 19:06:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=995</guid>
		<description><![CDATA[Need to have all caps and CSS seems the best way to do it? Maybe you don't want to re-code an entire menu (like me today!).
Use this:
.allcaps {text-transform: uppercase;}
... and there's no need to re-type a bunch of text links.
MORE INFO
CSS: text-transform on W3Schools site
]]></description>
			<content:encoded><![CDATA[<p>Need to have all caps and CSS seems the best way to do it? Maybe you don't want to re-code an entire menu (like me today!).</p>
<p>Use this:</p>
<blockquote><p>.allcaps {text-transform: uppercase;}</p></blockquote>
<p>... and there's no need to re-type a bunch of text links.</p>
<p><strong>MORE INFO</strong></p>
<p><a href="http://www.w3schools.com/Css/pr_text_text-transform.asp" target="_blank">CSS: text-transform on W3Schools site</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201006/webdesign/css-all-caps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Find Server and Domain Paths</title>
		<link>http://imblogginghere.com/techblog/201004/webdesign/php-find-server-and-domain-paths/</link>
		<comments>http://imblogginghere.com/techblog/201004/webdesign/php-find-server-and-domain-paths/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 19:59:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=981</guid>
		<description><![CDATA[For building sites that can more easily be moved from one server to another, and allows simpler updating of common information like email address and phone number of the client.
Here's some PHP to generate paths: both server paths and domain paths good for use in all sorts of ways for include and require statements.
&#60;?
// for [...]]]></description>
			<content:encoded><![CDATA[<p>For building sites that can more easily be moved from one server to another, and allows simpler updating of common information like email address and phone number of the client.</p>
<p>Here's some PHP to generate paths: both server paths and domain paths good for use in all sorts of ways for <strong>include</strong> and <strong>require</strong> statements.</p>
<blockquote><p>&lt;?<br />
// for INCLUDE statements - this is the local server path<br />
$urlPATH = "http://" . $_SERVER['SERVER_NAME'];<br />
$srvPATH = $_SERVER['DOCUMENT_ROOT'];<br />
include ($srvPATH."/config-settings.php");<br />
?&gt;</p></blockquote>
<p>More later.</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201004/webdesign/php-find-server-and-domain-paths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Do Until &#8211; Do While</title>
		<link>http://imblogginghere.com/techblog/201004/webdesign/php-do-until-do-while/</link>
		<comments>http://imblogginghere.com/techblog/201004/webdesign/php-do-until-do-while/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 01:19:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=950</guid>
		<description><![CDATA[The PHP Do While, just a quick post so I can find this later without Googling...
&#60;?
$i = 0;
do
{
// do something
}
while ($i &#62; 0);
i++;
?&#62;
MORE
PHP Do While on PHP.net
]]></description>
			<content:encoded><![CDATA[<p>The PHP Do While, just a quick post so I can find this later without Googling...</p>
<blockquote><p>&lt;?<br />
$i = 0;<br />
do<br />
{<br />
// do something<br />
}<br />
while ($i &gt; 0);<br />
i++;<br />
?&gt;</p></blockquote>
<p><strong>MORE<br />
</strong><a href="http://php.net/manual/en/control-structures.do.while.php" target="_blank">PHP Do While</a> on PHP.net</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201004/webdesign/php-do-until-do-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting Dynamic URL to Static using .htaccess</title>
		<link>http://imblogginghere.com/techblog/201003/webdesign/redirecting-dynamic-url-to-static-using-htaccess/</link>
		<comments>http://imblogginghere.com/techblog/201003/webdesign/redirecting-dynamic-url-to-static-using-htaccess/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 16:53:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=901</guid>
		<description><![CDATA[I (finally) found some documentation today on how to redirect a dynamic URL to a static URL. For example changing www.example.com/page.php?article=22 to www.example.com/apples-and-oranges.php
This is your .htaccess file entry to do the above redirection, of course the RewriteEngine on command is only needed once before the first redirect... This will work for ONE variable pair
RewriteEngine on
RewriteCond [...]]]></description>
			<content:encoded><![CDATA[<p>I (finally) found some documentation today on how to redirect a dynamic URL to a static URL. For example changing www.example.com/page.php?article=22 to www.example.com/apples-and-oranges.php</p>
<p>This is your .htaccess file entry to do the above redirection, of course the RewriteEngine on command is only needed once before the first redirect... This will work for ONE variable pair</p>
<blockquote><p>RewriteEngine on</p>
<p>RewriteCond %{QUERY_STRING} ^article=22$<br />
RewriteRule ^page\.php$ http://www.example.com/apples-and-oranges.php? [R=301,L]</p></blockquote>
<p>Now if you need to redirect a dynamic URL with more than one name/valu pair like this:</p>
<p>www.example.com/page.php?widget=cellphone22&amp;color=red</p>
<p>You will need to use the following code:</p>
<blockquote><p>RewriteEngine on</p>
<p>RewriteCond %{QUERY_STRING} [&amp;]?widget=cellphone22[&amp;]?<br />
RewriteRule ^page\.php$ www.example.com/cellphone22.php? [R=301,L]</p></blockquote>
<p>In this last example, <em>&amp;color=22</em> is ignored.</p>
<p><strong>Resources for this post:</strong></p>
<p>http://www.webmasterworld.com/apache/3365089.htm<br />
http://www.seoverflow.com/blog/seo/setting-up-301-redirects-for-dynamic-urls/</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/201003/webdesign/redirecting-dynamic-url-to-static-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Local Time &#8211; Your timezone</title>
		<link>http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/</link>
		<comments>http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 20:41:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=867</guid>
		<description><![CDATA[UPDATE: After a comment from a visitor I re-checked my code, did some testing and added the echo statement with formatted time, and improved the comments about how to check for the correct value of $offset. Also, note I have not used this code for a year yet so I do not know if daylight [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: </strong>After a comment from a visitor I re-checked my code, did some testing and added the echo statement with <a href="http://us3.php.net/time" target="_blank">formatted time</a>, and improved the comments about how to check for the correct value of $offset. Also, note I have not used this code for a year yet so I do not know if daylight savings has been taken into account.</p>
<p>PHP code to get time in YOUR timezone...</p>
<blockquote><p>&lt;?</p>
<p>$mydatetime = time ();<br />
$offset= 0; // offset in # of hours from desired location<br />
// check the time displayed using $offset = 0 and adjust<br />
// the offset accordingly<br />
$mydatetime = $mydatetime + ($offset * 60 * 60);<br />
echo date ("g:i A", $mydatetime);</p>
<p>?&gt;</p></blockquote>
<p>Check the <a href="http://us3.php.net/time" target="_blank">PHP Time manual</a> page for formatting the time. This code has only been tested on two implementations. When I wanted to display the local time for a website's "offical time" I couldn't find any simple explanations online.</p>
<p>Comments/feedback are invited.</p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/200912/webdesign/php-local-time-your-timezone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Search Engine Blocker</title>
		<link>http://imblogginghere.com/techblog/200910/webdesign/search-engine-blocker/</link>
		<comments>http://imblogginghere.com/techblog/200910/webdesign/search-engine-blocker/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 00:22:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=766</guid>
		<description><![CDATA[Are you looking for a way to post a page that you DO NOT want the search engines to index? The code is very simple, but also keep in mind its not a guarantee your page will not be picked up by a search engine because some will ignore the tag, but for most of [...]]]></description>
			<content:encoded><![CDATA[<p>Are you looking for a way to post a page that you DO NOT want the search engines to index? The code is very simple, but also keep in mind its not a guarantee your page will not be picked up by a search engine because some will ignore the tag, but for most of your work this should do the trick, especially for temporary content.</p>
<p>Obviously, this META tag should be used like others in the head (<a href="http://searchenginewatch.com/2167931" target="_blank">META tag info</a>)</p>
<blockquote><p>&lt;meta name="robots" content="noindex"&gt;</p></blockquote>
<p style="margin-top:40px;"><strong>MORE</strong></p>
<p><a href="http://googleblog.blogspot.com/2007/02/robots-exclusion-protocol.html" target="_blank">Google: Robots Exclusion Protocol</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/200910/webdesign/search-engine-blocker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Do Until Certain Date</title>
		<link>http://imblogginghere.com/techblog/200909/webdesign/php-do-until-certain-date/</link>
		<comments>http://imblogginghere.com/techblog/200909/webdesign/php-do-until-certain-date/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 05:01:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://imblogginghere.com/techblog/?p=747</guid>
		<description><![CDATA[I'm not deep into PHP, so I wrote this 'hack' to allow HTML or whatever  until a certain date. The sample below will do whatever HTML is until  a certain date...
&#60;?
// show this until Dec 31, 2009
$mymonth = date("m");
$myyear = date("Y");
$mycompare = $myyear . $mymonth;
// if its before Jan 2010, show NEW
if ($mycompare &#60; 201001) {
?&#62;
&#60;p&#62;Before [...]]]></description>
			<content:encoded><![CDATA[<p>I'm not <em>deep</em> into PHP, so I wrote this 'hack' to allow HTML or whatever  until a certain date. The sample below will do whatever HTML is until  a certain date...</p>
<blockquote><p><span style="color: #993300;">&lt;?</span></p>
<p><span style="color: #993300;">// show this until Dec 31, 2009<br />
$mymonth = date("m");<br />
$myyear = date("Y");<br />
$mycompare = $myyear . $mymonth;<br />
// if its before Jan 2010, show NEW<br />
if ($mycompare &lt; 201001) {</span></p>
<p><span style="color: #993300;">?&gt;</span></p>
<p>&lt;p&gt;Before 2010!&lt;/p&gt;</p>
<p><span style="color: #993300;">&lt;? } else { ?&gt;</span></p>
<p>&lt;p&gt;Its 2010 or later!&lt;/p&gt;</p>
<p><span style="color: #993300;">&lt;? } ?&gt;</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://imblogginghere.com/techblog/200909/webdesign/php-do-until-certain-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
