<?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>Dave Wooding &#187; php</title>
	<atom:link href="http://www.davewooding.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davewooding.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Aug 2010 17:52:39 +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>Another PHP Script</title>
		<link>http://www.davewooding.com/another-php-script/</link>
		<comments>http://www.davewooding.com/another-php-script/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:35:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=41</guid>
		<description><![CDATA[Working on another simple PHP script.  One that helps you write articles quickly.
It is called Articletator.
I&#8217;m planning on having a working version ready very soon.  
Here is a ten minute video demonstrating what it does so far &#8211; and the code that generates the results.
Articletator Video
The idea is you search for a keyword [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Working on another simple PHP script.  One that helps you write articles quickly.</p>
<p>It is called <a href="http://www.articletator.com/">Articletator</a>.</p>
<p>I&#8217;m planning on having a working version ready very soon.  </p>
<p>Here is a ten minute video demonstrating what it does so far &#8211; and the code that generates the results.</p>
<p><a href="http://www.youtube.com/watch?v=ugGZXTwxD-g" target="_blank">Articletator Video</a></p>
<p>The idea is you search for a keyword phrase of interest, tell the script how many results to get and where the results come from.</p>
<p>Articletator goes off and does its thing &#8211; grabbing urls of sites that provide the information of interest, parsing out bits of information relevant to your query and reporting back the results in an easy to use format.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/another-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split Testing Google Adsense The PHP Way</title>
		<link>http://www.davewooding.com/split-testing-google-adsense-the-php-way/</link>
		<comments>http://www.davewooding.com/split-testing-google-adsense-the-php-way/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=39</guid>
		<description><![CDATA[Or &#8220;The Poor Man&#8217;s Split Testing Method&#8221;.
There&#8217;s no right or wrong way to do this.  Darren Rowse made a post about split testing Google Adsense and showed how to do so using channels and a little javascript.
Like a lot of things, there are other ways of accomplishing the same thing.
Enter PHP, that fancy web [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Or &#8220;The Poor Man&#8217;s Split Testing Method&#8221;.</p>
<p>There&#8217;s no right or wrong way to do this.  Darren Rowse made a post about <a href="http://www.problogger.net/archives/2008/05/16/how-to-split-test-ab-test-your-adsense-ads/" target="_blank">split testing Google Adsense</a> and showed how to do so using channels and a little javascript.</p>
<p>Like a lot of things, there are other ways of accomplishing the same thing.</p>
<p>Enter PHP, that fancy web scripting language that gives you the ability to do some pretty neat tricks.</p>
<p>The code snippet below allows you to split test your Adsense by day.  Instead of having to setup separate channels to split test, just login to your Google Adsense account, create two versions of the Google Adsense code you want to test, paste those two versions into the PHP code shown below, put that PHP code in an include file on your site, and call that include file in your web page. Then, if you want to see how you are doing, go back to your Google Adsense account and look at your results <strong>by day</strong>.</p>
<p>O.K. maybe that was a lot of stuff to do.</p>
<p>If you have a PHP enabled web site and you are not using PHP includes, tsk, tsk.  </p>
<p>All of the even numbered days (even numbered according to PHP) will display one version of your Adsense code while all of the odd numbered days will show another version of your Adsense code.</p>
<p><code><font color="#000000"><br />
<font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">if&nbsp;(</font><font color="#0000BB">date</font><font color="#007700">(</font><font color="#DD0000">"z"</font><font color="#007700">)%</font><font color="#0000BB">2&nbsp;</font><font color="#007700">&lt;&nbsp;</font><font color="#0000BB">1</font><font color="#007700">)&nbsp;{</p>
<p></font><font color="#0000BB">?&gt;</p>
<p></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#1&nbsp;goes&nbsp;here&nbsp;--&gt;</p>
<p><font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">}&nbsp;else&nbsp;{</p>
<p></font><font color="#0000BB">?&gt;</p>
<p></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#2&nbsp;goes&nbsp;here&nbsp;--&gt;</p>
<p><font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">}</p>
<p></font><font color="#0000BB">?&gt;</font><br />
</font><br />
</code><br />
The most important part is the &#8220;if&#8221; statement, the code that checks whether today is an even or an odd numbered day.</p>
<p>In this <a href="http://us2.php.net/manual/en/function.date.php" target="_blank">PHP</a>  example the &#8220;z&#8221; represents the day of the year. </p>
<p>The date(&#8220;z&#8221;)%2 < 1 checks if today's number modulus 2 is less than one (which asks if today is an even numbered day), then do whatever is between the set of squirly braces - the "{" and "}" - else do whatever is between the next set of squirly braces.</p>
<p>The whatever I am referring to is display your Adsense code.  </p>
<p>By the way, there is nothing to prevent your from putting anything between the squirly braces.</p>
<p>There are some limitations to be aware of for sure.  Namely, you still need to generate two versions of the Adsense javascript code to include on your web site.  Also, if you want to get a better understanding of your results, you will need to download the results and group the data by even or odd day.  I don&#8217;t even know if Google allows for an easy way to get your Adsense results &#8211; I&#8217;m not even going to login to find out.</p>
<p>But, for a quick and dirty way of split testing your Adsense results, this PHP code will do the trick.</p>
<p>Extra: You don&#8217;t have to just use the day of the year (&#8220;w&#8221;), you could just as easily use day of the week (&#8220;w&#8221;), hour of the day (&#8220;G&#8221;), day of the month (&#8220;j&#8221;) &#8211; or some combination.  Whatever your mind can conceive and believe it can &#8230; oops, that&#8217;s for a different topic <img src='http://www.davewooding.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/split-testing-google-adsense-the-php-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let’s Get This Blog Started</title>
		<link>http://www.davewooding.com/let%e2%80%99s-get-this-blog-started/</link>
		<comments>http://www.davewooding.com/let%e2%80%99s-get-this-blog-started/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:29:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[linkbaiting]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=27</guid>
		<description><![CDATA[&#8220;And in the beginning&#8221; &#8230; what a great opening line.
Time to start building a brand for myself.  Get out and press the flesh with the people.  Shake some hands, get pictures taken with the babies, break ground on the new skyscraper.  Oh, sorry, wrong conversation.
Where was I?  Oh, yes, talking with [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>&#8220;And in the beginning&#8221; &#8230; what a great opening line.</p>
<p>Time to start building a brand for myself.  Get out and press the flesh with the people.  Shake some hands, get pictures taken with the babies, break ground on the new skyscraper.  Oh, sorry, wrong conversation.</p>
<p>Where was I?  Oh, yes, talking with you.  Letting you know what&#8217;s going on around here.  Telling you my great plans for this little old weblog out on the internut.</p>
<p>I guess I should start with what I have planned for this site.  After I spruce up the interior a little &#8211; a new paint job, refinish the floors, new kitchen cabinets  &#8230; no, no, no, no &#8211; there I go again, getting off track.</p>
<p>Actually, I do mean I need to spruce up the interior of this weblog a bit.  Give it a solid foundation to build on.  Stuff like tricking out the title &#8211; get rid of that damn raquo thing, you know that &#8216;greater than symbol&#8217; that services no worthwhile purpose.  I have the latest and greatest version of Wordpress running this site.  Not sure what all of its capabilities are, noticed a bunch of widgets running around when I went to muck around with the presentation.  I&#8217;ll have to wrap my head around widgets and I see if I like what I have here.  Or maybe just do it the old fashion way and edit using vi on the command line.  Something like this.</p>
<p><img src="http://www.davewooding.com/images/vi.jpg" alt="vi editor" height="300" width="380" /></p>
<p>Dont&#8217;  worry, I won&#8217;t make you touch it, it doesn&#8217;t hurt.</p>
<p>Once I have the look and feel stuff done, will move on to adding analytics &#8211; maybe <a href="http://www.statcounter.com/" title="statcounter" target="_blank">Statcounter</a> or <a href="http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fwww.google.com%2Fanalytics%2F&amp;ei=zaq_R9NKnbCAA-Ou3cEH&amp;usg=AFQjCNFz3Lrd3h9xlat60IUur_H8rmADdw&amp;sig2=TSnGe14Asma43gNaRjqUgQ" title="google analytics" target="_blank">Google Analytics</a> for tracking.</p>
<p>Of course, I&#8217;ll make the effort to build a list of subscribers &#8211; plan on making it worthwhile by giving stuff away.  When I say stuff, I mean useful PHP scripts &#8211; kind of like what <a href="http://dwooding.robertplank.com" title="robert plank the cat lover" target="_blank">Robert Plank</a> does at his site.</p>
<p>Then I&#8217;m going on a bender and getting setup with a bunch of Web 2.0 stuff for promoting this bad boy blog.  De.licio.us, onlywire, propeller, youtube, slideshare &#8211; whatever else I can think of to toot my own horn.</p>
<p>I have thought about <a href="http://www.blogstorm.co.uk/linkbait-tuesday-theory-session/" title="link bait" target="_blank">linkbaiting</a>.  Already have in mind who I&#8217;m targeting &#8211; going for the big fish on this one.  Title will read something like &#8220;_____ ____, I have your wife hostage.&#8221;  The ironic thing is I have something to back it up with &#8211; something I bought November 2007 when I first found out about this little factoid.  Cloak and dagger stuff &#8211; ohhh, ahhhh, exiting!</p>
<p>And to finish up, I&#8217;m going to click on those links I just dropped and see if I can attract any attention over here.</p>
<p>There you go, the first blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/let%e2%80%99s-get-this-blog-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verify A Web Page Exists With PHP</title>
		<link>http://www.davewooding.com/verify-a-web-page-exists-with-php/</link>
		<comments>http://www.davewooding.com/verify-a-web-page-exists-with-php/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:13:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[verify web page]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=12</guid>
		<description><![CDATA[Check To Verify Your Site Exists
I&#8217;m getting ready to open up the offer I made a couple months ago &#8211; to build you a gardening database driven website.
Before I do that, I want to make sure you are ready.  One thing I will ask you is if you have a website ready to go [...]]]></description>
			<content:encoded><![CDATA[<p></p><h3>Check To Verify Your Site Exists</h3>
<p>I&#8217;m getting ready to open up the offer I made a couple months ago &#8211; to build you a <a href="http://www.davewooding.com/gardening-affiliate-site/" target="_blank">gardening database driven website</a>.</p>
<p>Before I do that, I want to make sure you are ready.  One thing I will ask you is if you have a website ready to go &#8230; and I have a script that will verify.</p>
<p>The reason I am doing this is so that when you place your order, we can get your site setup and ready to go in a short amount of time.</p>
<p>Here&#8217;s part of the script I will have when the order page goes live next week:</p>
<form method="post" action="">
<p>Domain:</p>
<input size="35" value="http://" name="url" type="text">
<input type="submit" value="Check" size="35" class="btn">
</form>
<p>Thanks.</p>
<p>Dave</p>
<p>P.S. &#8211; If you have any questions, please use the comment section below to ask, thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/verify-a-web-page-exists-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give Your Friends Credit</title>
		<link>http://www.davewooding.com/give-your-friends-credit/</link>
		<comments>http://www.davewooding.com/give-your-friends-credit/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:09:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[friends]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=6</guid>
		<description><![CDATA[This was inspired by Robert Plank&#8217;s Black Hat PHP ebook.
So you know, I am working on increasing my online exposure.  Part of the way I am doing that is giving away some of my stuff &#8211; show you what I can do.  If you have been a regular reader of this site, you [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This was inspired by Robert Plank&#8217;s <a href="http://dwooding.robertplank.com/black-hat-php" target="_blank">Black Hat PHP</a> ebook.</p>
<p>So you know, I am working on increasing my online exposure.  Part of the way I am doing that is giving away some of my stuff &#8211; show you what I can do.  If you have been a regular reader of this site, you know that I am creating a database driven affiliate web site that I am going to give away (how to you get a free site, you ask?  Use the signup form and get on my mailing list).</p>
<p>Additionally, I have recently added a feature that gives you the possibility of making money from this site.  </p>
<p>If you refer people to this site and they either signup or purchase one of my products that I sell on Clickbank &#8211; you can get credit using a special link to direct visitors here.</p>
<p><img src="http://www.davewooding.com/images/visit1.jpg" alt="visitor credit" /></p>
<blockquote><p>Send people to this site using the following link:  http://www.davewooding.com/visit/cb_aff</p>
</blockquote>
<p>Replace the cb_aff with your ClickBank affiliate id (IMPORTANT: do NOT put a trailing slash (/) at the end or it won&#8217;t work)</p>
<p>Your affiliate link will show up in the autoresponder:</p>
<p><img src="http://www.davewooding.com/images/visit2.jpg" alt="autoresponder" /></p>
<p>Any emails I sent out for a product of mine will have your affiliate id embedded.</p>
<p>Also any product that I sell off of this page via Clickbank (yes, there is a product for sale):</p>
<p><img src="http://www.davewooding.com/images/visit3.jpg" alt="ClickBank" /></p>
<p>If you are familiar with looking at the html code, go look at it now &#8211; see if the html code looks similar to what I just showed you.  If not, type in this link in your brower&#8217;s address bar,  http://www.davewooding.com/visit/cb_aff (replace the cb_aff with your affiliate id).</p>
<p>So there, I have come clean with my intentions &#8211; I&#8217;m looking to increase my online exposure and am willing to pay for it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/give-your-friends-credit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
