<?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/tag/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>Show Me The Datafeed</title>
		<link>http://www.davewooding.com/show-me-the-datafeed/</link>
		<comments>http://www.davewooding.com/show-me-the-datafeed/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:32:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[datafeed]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=33</guid>
		<description><![CDATA[The next step in creating a database driven website is to display the results.
We have the contents loaded up in the MySQL database ready and waiting.
First thing to do is write a simple query that pulls out a few of the entries.
The way I will do that looks like this:

The important part is line #62, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The next step in creating a <strong>database driven website</strong> is to display the results.</p>
<p>We have the contents loaded up in the <a href="http://www.davewooding.com/affiliate-datafeed-database-the-guts/">MySQL database</a> ready and waiting.</p>
<p>First thing to do is write a simple query that pulls out a few of the entries.</p>
<p>The way I will do that looks like this:</p>
<p><img src="http://www.davewooding.com/images/select1.jpg" alt="MySQL SELECT" /></p>
<p>The important part is line #62, the one that starts with $sql.</p>
<p>The way to read it is &#8220;Give me everything that has the word &#8216;Tree&#8217; in the title.</p>
<p>Once we have that information, then lets print it out.</p>
<p>The &#8220;while&#8221; statement on line #65 goes through the results and prints out the title and description.  Nothing fancy &#8230; at least not yet.</p>
<p>That&#8217;s enough to hold me over.  Enjoy the &#8220;<a href="http://www.youtube.com/watch?v=cK70_BtyFeA" target="_blank">family video</a>&#8221; that shows you how to do this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/show-me-the-datafeed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unique Datafeed Content</title>
		<link>http://www.davewooding.com/unique-datafeed-content/</link>
		<comments>http://www.davewooding.com/unique-datafeed-content/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:31:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[datafeed]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=31</guid>
		<description><![CDATA[There&#8217;s a problem with datafeed affiliate sites &#8211; at least it is a problem if you want your sites to stand out from all of the competition &#8211; duplicate content.  
Who do you think will rank higher in the search engines for specific terms that you might find in your datafeed?  Probably the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>There&#8217;s a problem with <strong>datafeed affiliate sites</strong> &#8211; at least it is a problem if you want your sites to stand out from all of the competition &#8211; <em>duplicate content</em>.  </p>
<p>Who do you think will rank higher in the search engines for specific terms that you might find in your datafeed?  Probably the merchant.  If this happens, then your site is less likely to get the click that gets the affiliate sale.</p>
<p>So what to do, what to do &#8211; let me think.  Hmm.</p>
<p>Let&#8217;s get a little creative with what the merchant gives us, shall we.</p>
<p>Here&#8217;s an example entry that we can use from the affiliate&#8217;s datafeed.</p>
<p><img src="http://www.davewooding.com/images/unique-datafeed4.jpg" alt="affiliate datafeed" /></p>
<p>I was planning on using the second line, the one that says &#8220;American Beech&#8221; as the title.  What  is to stop me from also adding the word &#8220;Tree&#8221; found on the 12th line down to the title.  Nothing really.  I can make the affiliate script combine portions of the datafeed and mash it up to create a new title.  Pretty cool, huh!</p>
<p>Or how about this idea.</p>
<p>Instead of using the &#8220;Dahlia &#8211; Dinnerplate &#8211; Magic Sunrise&#8221; as the title, why not (1) get rid of the dash (-) and also rearrange the words to read &#8220;Magic Sunrise Dahlia Dinnerplate&#8221;?  I can already see the PHP code to do that.  </p>
<p><img src="http://www.davewooding.com/images/unique-datafeed2.jpg" alt="rearrange datafeed" /></p>
<p>Want in on a big secret &#8211; on how I am going to make each site affiliate datafeed site that I create unique?</p>
<p>What secret little piece of PHP code that I have planned for making certain that no matter what, each site I build is not identical to any other site.</p>
<p>Ready?  Here it is &#8230; <a href="http://us.php.net/operators.arithmetic" target="_blank">modulus</a>.</p>
<p>I&#8217;ll explain later <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/unique-datafeed-content/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>JVPlus Setup For ClickBank</title>
		<link>http://www.davewooding.com/jvplus-setup-for-clickbank/</link>
		<comments>http://www.davewooding.com/jvplus-setup-for-clickbank/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:15:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[clickbank]]></category>
		<category><![CDATA[jvplus]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=16</guid>
		<description><![CDATA[Here&#8217;s how to setup Robert Plank&#8217;s JVPlus for use with ClickBank.
&#160;
&#160;
1) First thing you should do is buy it.  The second thing is to upload all of the files to your website.

The files include jvplus.css, jvplus-config.php, jvplus-packer.php, jvplus-share.php and jvplus.php.
&#160;
&#160;
2) Next, you need to test it out to make sure it works on your [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s how to setup <a href="http://dwooding.jvplus.com" target="_blank">Robert Plank&#8217;s JVPlus</a> for use with ClickBank.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>1) First thing you should do is <a href="http://dwooding.jvplus.com" target="_blank">buy it</a>.  The second thing is to upload all of the files to your website.</p>
<p><img src="http://www.davewooding.com/jvplus/1.jpg" alt="JVPLus" /></p>
<p>The files include jvplus.css, jvplus-config.php, jvplus-packer.php, jvplus-share.php and jvplus.php.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>2) Next, you need to test it out to make sure it works on your PHP enabled web server.</p>
<p>Open a new text file and created a web page that links to some url, for instance, http://www.example.com.  At the bottom of the text file, add the following line:</p>
<p><code><font color="#000000"><br />
&lt;script&nbsp;type="text/javascript"&nbsp;src="/jvplus/jvplus.php"&gt;&lt;/script&gt;</font></p>
<p></code><br />
Save the file as either index.html. index.htm, or index.php.</p>
<p><img src="http://www.davewooding.com/jvplus/2.jpg" alt="index.php" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>3) Upload the newly created index file to a directory on your server, in my case, you can visit my <a href="http://www.davewooding.com/jvplus/" target="_blank">JVPlus subdirectory</a> to see an example.</p>
<p>Here&#8217;s what it looks like.</p>
<p><img src="http://www.davewooding.com/jvplus/3.jpg" alt="JVPlus subdirectory" /></p>
<p>Fancy, huh?</p>
<p>If you were to put your mouse of the link, you should see that it goes to &#8220;http://www.example.com&#8221;.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>4) Now add on a &#8220;?hop=yourname&#8221; at the end of the url.  Something like this:</p>
<p><img src="http://www.davewooding.com/jvplus/4.jpg" alt="hop link" /></p>
<p>Click here for an example, <a href="http://www.davewooding.com/jvplus/?hop=dwooding" target="_blank">http://www.davewooding.com/jvplus/?hop=dwooding</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>5)  Put your mouse over the link now and notice the difference &#8230;</p>
<p><img src="http://www.davewooding.com/jvplus/5.jpg" alt="clikbank hop link" /></p>
<p>Everything should be working now &#8211; you should see your name show up in the url that you put your mouse over.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>6) Time to do this for real.</p>
<p>Edit the jvplus-config.php file.</p>
<p><img src="http://www.davewooding.com/jvplus/6.jpg" alt="edit jvplus-config.php" /></p>
<p>Add in links to your clickbank products that look like these:</p>
<p><img src="http://www.davewooding.com/jvplus/7.jpg" alt="clickbank products" /></p>
<p>Save and close the jvplus-config.php file</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>7) Edit your index file.</p>
<p><img src="http://www.davewooding.com/jvplus/8.jpg" alt="edit index html file" /></p>
<p>Add links to your Clickbank product(s) that look like straight links (and not Clickbank hop links).</p>
<p><img src="http://www.davewooding.com/jvplus/9.jpg" alt="clickbank hop links" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p> <img src='http://www.davewooding.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Save the index file and close it.  Go back to the subdirectory and reload, here&#8217;s what my page looks like now.</p>
<p><img src="http://www.davewooding.com/jvplus/10.jpg" alt="jvplus subdirectory" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>9) Put your mouse over the newly added links and notice that the link goes through ClickBank&#8217;s hop link system.</p>
<p><img src="http://www.davewooding.com/jvplus/11.jpg" alt="hoplink" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>10) Let people link to your subdirectory with you Clickbank products and have ALL your products use THEIR affiliate link, give them a link that looks like this<br />
<a href="http://www.davewooding.com/jvplus/?q=view" target="_blank">CLICK HERE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/jvplus-setup-for-clickbank/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>Setting Up An Affiliate Database Driven Website</title>
		<link>http://www.davewooding.com/setting-up-an-affiliate-database-driven-website/</link>
		<comments>http://www.davewooding.com/setting-up-an-affiliate-database-driven-website/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:12:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[affiliate]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=10</guid>
		<description><![CDATA[So you can make money &#8211; automatically.
You can have a &#8220;hands free&#8221; database driven affiliate site up and running by following these instructions.
The first datafeed video (the one you watched at the top of this page) gets a datafeed on your site ready for use.

FTP zip datafeed to your web server
Unzip the file on your [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>So you can make money &#8211; automatically.</p>
<p><strong>You can have a &#8220;hands free&#8221; database driven affiliate site up and running by following these instructions.</strong></p>
<p>The first <a href="http://www.youtube.com/watch?v=3u3q5dtJ3OM" target="_blank">datafeed video</a> (the one you watched at the top of this page) gets a datafeed on your site ready for use.</p>
<ul>
<li>FTP zip datafeed to your web server</li>
<li>Unzip the file on your server</li>
</ul>
<p>Simple.</p>
<p>Now we get ready to dump the datafeed into a MySQL database.</p>
<p>First things first.  Need to setup a MySQL database &#8211; that means having a database name, a username, and password.</p>
<p>This <a href="http://www.youtube.com/watch?v=TRqdYsdnkmA" target="_blank">database setup video</a> shows you exactly what to do.</p>
<ul>
<li>Create a MySQL database</li>
<li>Create a user and password</li>
<li>Assign the user to the database</li>
</ul>
<p><strong>Keep Your Site Running Smooth</strong></p>
<p>To make life a little easier, you will want to create a config file that contains the database, username, and password.  This file, which we will name config.php, will be used to retrieve and store information.</p>
<p>Config file should look something like this.</p>
<p><code><font color="#000000"><br />
<font color="#0000BB">&lt;?</p>
<p>$mysql_database&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#DD0000">"account_databasename"</font><font color="#007700">;</p>
<p></font><font color="#0000BB">$mysql_user&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#DD0000">"account_databaseuser"</font><font color="#007700">;</p>
<p></font><font color="#0000BB">$mysql_password&nbsp;</font><font color="#007700">=&nbsp;</font><font color="#DD0000">"password"</font><font color="#007700">;</p>
<p></font><font color="#0000BB">$dbh</font><font color="#007700">=</font><font color="#0000BB">mysql_connect&nbsp;</font><font color="#007700">(</font><font color="#DD0000">"localhost"</font><font color="#007700">,&nbsp;</font><font color="#0000BB">$mysql_user</font><font color="#007700">,&nbsp;</font><font color="#0000BB">$mysql_password&nbsp;</font><font color="#007700">)&nbsp;or&nbsp;die&nbsp;(</font><font color="#0000BB">mysql_error</font><font color="#007700">());</p>
<p></font><font color="#0000BB">mysql_select_db&nbsp;</font><font color="#007700">(</font><font color="#0000BB">$mysql_database</font><font color="#007700">);</p>
<p></font><font color="#0000BB">?&gt;</font><br />
</font><br />
</code><br />
Once complete, the config file gets uploaded to your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/setting-up-an-affiliate-database-driven-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
