<?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>Christopher Ross &#187; php echo</title>
	<atom:link href="http://www.thisismyurl.com/tag/php-echo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thisismyurl.com</link>
	<description>Web Development, Online Marketing &#38; Graphic Design</description>
	<lastBuildDate>Sun, 21 Mar 2010 14:20:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How do I add the date to my blog?</title>
		<link>http://www.thisismyurl.com/tutorials/design-tutorials/how-do-i-add-the-date-to-my-blog/</link>
		<comments>http://www.thisismyurl.com/tutorials/design-tutorials/how-do-i-add-the-date-to-my-blog/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 15:38:41 +0000</pubDate>
		<dc:creator>Christopher Ross</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code lt]]></category>
		<category><![CDATA[Content Themes]]></category>
		<category><![CDATA[copyright notice]]></category>
		<category><![CDATA[Current]]></category>
		<category><![CDATA[Date Function]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[Js]]></category>
		<category><![CDATA[Php Date]]></category>
		<category><![CDATA[php echo]]></category>
		<category><![CDATA[Php File]]></category>
		<category><![CDATA[Php Function]]></category>
		<category><![CDATA[Php Reference]]></category>
		<category><![CDATA[Reference Page]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://www.thisismyurl.com/?p=12111</guid>
		<description><![CDATA[There are a lot of times when we want to add something as simple as the date to our blog but coding (especially in PHP) can be a bit difficult. Let me walk you through the steps to adding a date to your blog, assuming of course you use WordPress.
First, open your template files such [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of times when we want to add something as simple as the date to our blog but coding (especially in PHP) can be a bit difficult. Let me walk you through the steps to adding a date to your blog, assuming of course you use WordPress.</p>
<p>First, open your template files such as the footer by loading the <em>footer.php</em> file located in your <em>/wp-content/themes/[theme name]/</em> folder.</p>
<p>Next, we need to insert a very simple PHP function called <strong>date()</strong> into your page but before we do that, we need to make sure that we open and close the PHP event. To do this, simply open it using <strong>&lt;?php</strong> and close it using <strong>?&gt;</strong>. The <strong>date()</strong> function itself requires a formating argument, but luckily we&#8217;re not meant to remember them all. They can be found on the <a href="http://php.net/manual/en/function.date.php">PHP date() reference page</a>.</p>
<p>As an example, if you want to show the day of the week that it currently is you could open your website and edit it every day (highly impractical) or you could insert the code <strong>&lt;?php echo date(&#8216;l&#8217;); ?&gt;</strong> into your page. Note that I open the PHP event, place the date() function with the argument &#8216;l&#8217;, indicate the end of a line (;) and then close the PHP event.  Each of these elements are required to properly format the date.</p>
<p>If you would like to show the current year, simply use: <strong>&lt;?php echo date(&#8216;Y&#8217;); ?&gt;</strong> because Y is the symbol for the year. On the other hand, if you&#8217;d like to use something more complex, try <strong>&lt;?php echo </strong><span style="color: #0000bb;"><strong>date</strong></span><span style="color: #007700;"><strong>(</strong></span><span style="color: #dd0000;"><strong>&#8216;l jS \of F Y h:i:s A&#8217;</strong></span><span style="color: #007700;"><strong>);</strong></span><strong> ?&gt; </strong>which will return something like <em>Monday 8th of August 2005 03:12:46 PM</em>.</p>
<p>Once you&#8217;ve saved your footer.php file, simply re-upload it to your server and voila! Now you can set the date using your server and PHP instead of editing files every day! In more practical terms, it is how you can always have an updated copyright notice of your website without having to remember to update it each January.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisismyurl.com/tutorials/design-tutorials/how-do-i-add-the-date-to-my-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Easy Technorati Tags for WordPress</title>
		<link>http://www.thisismyurl.com/free-downloads/easy-technorati-tags-for-wordpress/</link>
		<comments>http://www.thisismyurl.com/free-downloads/easy-technorati-tags-for-wordpress/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 16:53:12 +0000</pubDate>
		<dc:creator>Christopher Ross</dc:creator>
				<category><![CDATA[Easy Technorati Tags for WordPress]]></category>
		<category><![CDATA[Free Downloads]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code lt]]></category>
		<category><![CDATA[Comma Separated List]]></category>
		<category><![CDATA[Directory Support]]></category>
		<category><![CDATA[Download Download]]></category>
		<category><![CDATA[Few Moments]]></category>
		<category><![CDATA[Generators]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[Own Website]]></category>
		<category><![CDATA[php echo]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[Support Forums]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[Technorati Tags]]></category>
		<category><![CDATA[Timu]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.thisismyurl.com/?p=4357</guid>
		<description><![CDATA[Add free Technorati tags to your WordPress website with this quick and easy plugin!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thisismyurl.com/wp-content/uploads/2009/04/technorati.jpeg"  rel="lightbox[roadtrip]"><img class="alignright size-small wp-image-4358" title="Technorati" src="http://www.thisismyurl.com/wp-content/uploads/2009/04/technorati.jpeg" alt="Technorati" width="124" height="115" /></a>There are a few other <a title="Technorati" href="http://Technorati.com">Technorati</a> Tags generators for WordPress out there but I found most of them overly complicated and fairly difficult to use, often requiring custom fields or complex processes. What this plugin does is takes the native tags from WordPress and generates a list of Technorati tags for your blog.</p>
<p><strong>Usage</strong></p>
<p>To use the Easy Technorati Tags for WordPress plugin, simply download and install onto your WordPress website. You can then add it to your theme by inserting the code <em>&lt;?php echo timu_technorati_tags() ;?&gt;</em> to your blog theme files or to a sidebar widget.</p>
<p><strong>Output</strong></p>
<p>The tag generates a comma separated list of tags complete with Technorati links. I choose to return it as a value rather than write it directly so that if you&#8217;d like to make changes or process the results, you can do it easy.</p>
<p style="text-align: center;"><a href="http://www.thisismyurl.com/?download=Easy%20Technorati%20Tags%20for%20WordPress"><img class="aligncenter " title="download-file" src="http://www.thisismyurl.com/wp-content/uploads/2009/01/download-file.png"  alt="download file Easy Technorati Tags for WordPress image" width="322" height="80" / rel="lightbox[roadtrip]" /></a></p>
<p>You can download the plugin directly from the WordPress Plugin Directory. Don&#8217;t forget to rate the plugin if you&#8217;ve enjoyed it.</p>
<p><strong>How You Can Help</strong></p>
<p><em>I love developing </em><a title="WordPress plugins" href="http://www.thisismyurl.com/category/software/web-based/wordpress-downloads/wordpress-plugins/"><em>plugins for WordPress</em></a><em> and do my best to always keep them free but of course it take a lot of time and effort to build these plugins so if you&#8217;d like to say thanks, the best way is to take a few moments and write about the plugin on your own website, include a link to my website from your posts or </em><a href="http://wordpress.org/extend/plugins/easy-technorati-tags-for-wordpress/"><em>download and rate the plugin on the official plugin directory</em></a><em>.</em></p>
<p><em>Support forums are now online! If you have any questions, please visit <a href="http://forums.thisismyurl.com">http://forums.thisismyurl.com</a>.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisismyurl.com/free-downloads/easy-technorati-tags-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Generating a Dynamic Copyright Notice in WordPress</title>
		<link>http://www.thisismyurl.com/tutorials/wordpress-help/generating-a-dynamic-copyright-notice-in-wordpress/</link>
		<comments>http://www.thisismyurl.com/tutorials/wordpress-help/generating-a-dynamic-copyright-notice-in-wordpress/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 16:35:55 +0000</pubDate>
		<dc:creator>Christopher Ross</dc:creator>
				<category><![CDATA[WordPress Help]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[christopher ross]]></category>
		<category><![CDATA[copyright notice]]></category>
		<category><![CDATA[copyright notices]]></category>
		<category><![CDATA[copyright statement]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[php echo]]></category>
		<category><![CDATA[second solution]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.thisismyurl.com/?p=2805</guid>
		<description><![CDATA[Copyright notices are located in the footer of almost every website on the Internet and for good reason, it&#8217;s part of what protects us from content thieves or at least in theory but most of our copyright notices are outdated or hand coded, even in WordPress so how do we get around this?
The Current Year
My [...]]]></description>
			<content:encoded><![CDATA[<p>Copyright notices are located in the footer of almost every website on the Internet and for good reason, it&#8217;s part of what protects us from content thieves or at least in theory but most of our copyright notices are outdated or hand coded, even in WordPress so how do we get around this?</p>
<h2>The Current Year</h2>
<p>My first solution was to place a small piece of PHP code in the footer of my WordPress file so that it always showed the current year, like so:</p>
<blockquote><p>Copyright &lt;?php echo date(&#8220;Y&#8221;);?&gt; Christopher Ross.</p></blockquote>
<p>Which resulting in:</p>
<blockquote><p>Copyright 2009 Christopher Ross.</p></blockquote>
<h2>An Earlier Year to The Current Year</h2>
<p>That system worked fine but was technically wrong since many of my posts predate 2009, which led me to my second solution of simply posting an earlier date in front of the PHP code like so:</p>
<blockquote><p>Copyright 2005-&lt;?php echo date(&#8220;Y&#8221;);?&gt; Christopher Ross.</p></blockquote>
<p>Still, technically wrong since I had no idea what the earliest post in my blog was and I&#8217;m too lazy to search through all the posts to find out. Which led me to the desire a script which would automatically find the first occurrence of a post in my blog and post the results as a copyright statement.</p>
<h2>Automating the Copyright notice</h2>
<p>To automate the copyright notice, first I needed to establish the first post as well as the last. The following code will accomplish that task:</p>
<blockquote class="code"><p> </p>
<p>function copyright() {</p>
<p>global $wpdb;</p>
<p>$posts = $wpdb-&gt;get_results(&#8220;SELECT YEAR(post_date_gmt) AS year FROM $wpdb-&gt;posts WHERE post_date_gmt &gt; 1970 ORDER BY post_date_gmt ASC&#8221;);</p>
<p>$last = $posts[count($posts)-1]-&gt;year;</p>
<p>$first = $posts[0]-&gt;year;</p>
<p> </p>
<p>$c = __(&#8216;Copyright (&amp;copy;) &#8216;, &#8216;inove&#8217;) . $first;</p>
<p>if($first != $last) {</p>
<p>    $c .= &#8216;-&#8217;. $last;</p>
<p>}</p>
<p>return $c;</p>
<p>}</p></blockquote>
<p>Simply placing the function in your functions.php file will allow you to insert the code <em>&lt;?php echo  copyright();?&gt;</em> into your footer, resulting in a fully automated copyright notice as you can see on the footer of my website.</p>
<p>For those users who prefer to use a plugin, I&#8217;ve uploaded a WordPress plugin version of the copyright tool as well.</p>
<ul>
<li class="preview"><a href="http://www.thisismyurl.com/wordpress/plugins/autocopyright/">WordPress Plugin</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.thisismyurl.com/tutorials/wordpress-help/generating-a-dynamic-copyright-notice-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin to automatically update the copyright notice.</title>
		<link>http://www.thisismyurl.com/free-downloads/autocopyright-news/</link>
		<comments>http://www.thisismyurl.com/free-downloads/autocopyright-news/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 16:35:05 +0000</pubDate>
		<dc:creator>Christopher Ross</dc:creator>
				<category><![CDATA[Auto Copyright]]></category>
		<category><![CDATA[Free Downloads]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code lt]]></category>
		<category><![CDATA[copyright notice]]></category>
		<category><![CDATA[Current]]></category>
		<category><![CDATA[Directory Support]]></category>
		<category><![CDATA[Displays]]></category>
		<category><![CDATA[Few Moments]]></category>
		<category><![CDATA[First Date]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[Own Website]]></category>
		<category><![CDATA[php echo]]></category>
		<category><![CDATA[plug ins]]></category>
		<category><![CDATA[Plugin Directory]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Support Forums]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.thisismyurl.com/?p=2809</guid>
		<description><![CDATA[The Auto Copyright notice plugin fetches the first and last year of posts from the database and displays the results as a copyright notice on your website.]]></description>
			<content:encoded><![CDATA[<h2>What is this WordPress plugin?</h2>
<p><a href="http://www.thisismyurl.com/wp-content/uploads/2009/01/auto-copyright.png"  rel="lightbox[roadtrip]"></a>This plugin automatically generates a copyright notice from the first post in your blog to the current year. The Auto Copyright notice plugin fetches the first and last year of posts from the database and displays the results as a copyright notice on your website.</p>
<p>This process allows blog owners to add content retroactively, knowing that the  website will automatically find the first date a post is published as well as the last published date or the current year (whichever is later).</p>
<p>To use the plugin, simply download it and add the code  <em>&lt;?php echo  autocopyright();?&gt;</em> to your website where you&#8217;d like the copyright notice to appear.</p>
<p><a href="http://www.thisismyurl.com/?download=Auto%20Copyright"><img class="aligncenter wp-image-4623" title="download-file" src="http://www.thisismyurl.com/wp-content/uploads/2009/01/download-file.png"  alt="download file WordPress Plugin to automatically update the copyright notice. image" width="322" height="80" / rel="lightbox[roadtrip]" /></a></p>
<p><strong>How You Can Help</strong></p>
<p><em>I love developing </em><a title="WordPress plugins" href="http://www.thisismyurl.com/category/software/web-based/wordpress-downloads/wordpress-plugins/"><em>plugins for WordPress</em></a><em> and do my best to always keep them free but of course it take a lot of time and effort to build these plugins so if you&#8217;d like to say thanks, the best way is to take a few moments and write about the plugin on your own website, include a link to my website from your posts or </em><a href="http://wordpress.org/extend/plugins/auto-copyright-1/"><em>download and rate the plugin on the official plugin directory</em></a><em>.</em></p>
<p><em>Support forums are now online! If you have any questions, please visit <a href="http://forums.thisismyurl.com">http://forums.thisismyurl.com</a>.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thisismyurl.com/free-downloads/autocopyright-news/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
