<?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>Jeff Kastner &#187; Jeff Kastner</title>
	<atom:link href="http://www.jeffkastner.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffkastner.com</link>
	<description>Remote System Administration, Making $$ Online.. and some other stuff</description>
	<lastBuildDate>Wed, 19 Oct 2011 16:38:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Leaked Google Document Shows How Websites Are Rated</title>
		<link>http://www.jeffkastner.com/2011/10/leaked-google-document-shows-how-websites-are-rated/</link>
		<comments>http://www.jeffkastner.com/2011/10/leaked-google-document-shows-how-websites-are-rated/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 16:38:28 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=512</guid>
		<description><![CDATA[Getting into Internet Marketing and not sure what Google considers a &#8220;quality&#8221; website? Here&#8217;s a leaked document that shows exactly how ratings are assigned and how manual reviews are done. This is quite handy, as I constantly read blogs where someone has had their site deindexed (removed from the Google search results) by Google for [...]]]></description>
			<content:encoded><![CDATA[<p>Getting into Internet Marketing and not sure what Google considers a &#8220;quality&#8221; website?  Here&#8217;s a leaked document that shows exactly how ratings are assigned and how manual reviews are done.  </p>
<p>This is quite handy, as I constantly read blogs where someone has had their site deindexed (removed from the Google search results) by Google for infractions.  </p>
<p>Enjoy!</p>
<p><a href="http://www.jeffkastner.com/Google-General_Guidelines-2011.pdf" title="Google Quality Guidelines" target="_blank">Google Quality Guidelines 2011</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/10/leaked-google-document-shows-how-websites-are-rated/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Trending Topics &#8211; My Latest Website</title>
		<link>http://www.jeffkastner.com/2011/06/trending-topics-my-latest-website/</link>
		<comments>http://www.jeffkastner.com/2011/06/trending-topics-my-latest-website/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 15:16:39 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=494</guid>
		<description><![CDATA[Check out my latest website at newsmonkey.net. News Monkey is an experiment in presenting the news in a different way than you&#8217;re used to. What I did was head over to the latest searches at AOL. As you&#8217;ll see, that page collects the top 50 searches every hour. That sounded like a great place to [...]]]></description>
			<content:encoded><![CDATA[<p>Check out my latest website at <a href="http://www.newsmonkey.net/" target="_blank">newsmonkey.net</a>.  News Monkey is an experiment in presenting the news in a different way than you&#8217;re used to.  What I did was head over to <a href="http://search.aol.com/aol/trends" target="_blank">the latest searches at AOL</a>.  As you&#8217;ll see, that page collects the top 50 searches every hour.  That sounded like a great place to start so the NewsMonkey scrapes those terms and I save them all to a mysql database.  I then present them dynamically (as soon as they get stored every hour) on the front page of NewsMonkey and I grab the related news stories at Yahoo and Google and dynamically display them as well.  </p>
<p>In this way, a user never has to leave the page to see all the latest news.  It&#8217;s easy to simply look at the list on the right, select what topic is of interest to you, click that term and see snippets of all the latest news displayed on the same page.  Click the snippets and you are taken to the full news story.  </p>
<p>The site also has an &#8220;All News&#8221; page, where I&#8217;m actually displaying all of these hourly terms that I save.  Since AOL doesn&#8217;t display the historical terms anywhere, this could be a handy list for seeing a history of what&#8217;s hot on the web and using it for such things as creating relevant blog posts, or just seeing what people are continually interested in looking at.  That can be important info for anyone who&#8217;s into online marketing.  </p>
<p>NewsMonkey is an easy way to see all the latest search terms and related news stories, all in one place, on a single page.  Find that somewhere else! </p>
<p>To monetize the website, I&#8217;m currently using InfoLinks.  I&#8217;ve not tried this service before and so far, I&#8217;m not crazy about it.  In just a few weeks since building this site, I am getting a lot of Google traffic and I&#8217;ve yet to even begin a marketing campaign on it.  Nothing better than organic traffic when you build a site!  Google already has over 11,000 pages indexed and I&#8217;m getting around 300 visitors a day and that typically equates to some decent extra income when using AdSense, <a href="http://www.jeffkastner.com/2011/05/how-to-make-a-lot-of-money-online/">as I explained in a previous post</a>.  Still, I&#8217;ll stick with InfoLinks for another month or so and see if it picks up any.  </p>
<p>Next up is a couple new site ideas that I&#8217;ve been working on that are equally as fun so come back and visit&#8230;  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/06/trending-topics-my-latest-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Make a Lot of Money Online</title>
		<link>http://www.jeffkastner.com/2011/05/how-to-make-a-lot-of-money-online/</link>
		<comments>http://www.jeffkastner.com/2011/05/how-to-make-a-lot-of-money-online/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 04:08:25 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=473</guid>
		<description><![CDATA[If you Google how to make money online, you get a few million websites swearing by a method that will make you a fortune, if you only spend a small fortune to make it happen. So here&#8217;s a post for the people that want a legitimate system and don&#8217;t know where to start.. without the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-481" title="adsense" src="http://www.jeffkastner.com/wp-content/uploads/2011/05/adsense.png" alt="adsense" width="458" height="382" />If you Google how to make money online, you get a few million websites swearing by a method that will make you a fortune, if you only spend a small fortune to make it happen.  So here&#8217;s a post for the people that want a legitimate system and don&#8217;t know where to start.. without the added request for any money from you.</p>
<p>I started trying to make online money just last fall (2010).  With every month, I&#8217;ve made a little more.  It&#8217;s been 9 months and just today, I&#8217;ve received my latest AdSense check for last month in the amount of $1,443.32.  (May was more yet again)</p>
<p>AdSense is Google&#8217;s program for monetizing websites.  Advertisers sign up at Google&#8217;s AdWords program, pay good money to try to outbid each other for ads that are placed on millions of websites.  The bidding war makes AdSense publishers (those of us with websites) profit all the more.</p>
<p>If you&#8217;re looking to make money, here&#8217;s a quick breakdown of the how to&#8230;</p>
<ul>
<li>Create a website (or websites) that target niches with buying keywords.  In other words, don&#8217;t start a personal blog about your every day life and expect to make money.  If your goal is money, ask yourself if the topic of your blog is something people will Google when searching for and spend money on?   If you are a personal loan officer, start a blog about it!  That&#8217;s a high paying niche with ads people will click on.</li>
<li>Target long-tail keywords.  If you&#8217;re considering starting a website on video cameras, the competition will be fierce and you&#8217;ll likely never see many visitors.  Instead, do a Google search for a specific model camcorder with a specific option and focus on specific features.  This makes your site an &#8220;authority site&#8221; and if you have the most information on the product, in this manner, Google&#8217;s algorithm is smart enough to realize that and a lot of Google searches get sent your way.  Traffic is the key.</li>
<li>The more content you can get on your site(s), the better.  I use automated methods as well as manual.  You have to have a lot of content to have a chance of getting a lot of visitors.  Check the amount of pages that any site has by going to Google and typing:  site:websitename.com (where websitename is the name of your site).  Most of my sites have a few thousand pages.  More content = more traffic.</li>
<li>Backlink, backlink, backlink.  Google doesn&#8217;t give your site authority until it sees a lot of backlinks (links from other websites) linking to you.  This unfortunately is what leads to the vast amount of spam you see everywhere online.</li>
<li>Don&#8217;t expect instant results.  Most of my websites take a little over three months to start bringing money in.  It&#8217;s just a few dollars in the first month or two and then they tend to jump considerably in that third or fourth month.  Keep creating backlinks and content during this time.  Unfortunately, some sites are duds and never seem to come through with more than a couple dollars a month.  I typically forget these sites after about 5 months if they still aren&#8217;t producing.</li>
<li>Spin your content and submit to article directories.  Article directories are everywhere online.  You&#8217;ve probably found many while Googling for searches yourself.  The idea is to write random articles and the magic happens in that little author box.  Put the backlinks to your site(s) in that box.  The more popular article directories tend to get scraped (people copy the content to their own blogs) and your backlinks get spread around the internet a bit more quickly.</li>
</ul>
<p>Here&#8217;s the tools I typically use:</p>
<ul>
<li><a href="http://www.labnol.org/google-adsense-sandbox/" target="_blank">The AdSense sandbox</a> &#8211; This handy site allows you to punch your new website topic in and see what kind of ads will be displayed on the site you&#8217;re thinking about creating.. thus letting you see how lucrative it has the potential to be.</li>
<li><a href="https://adwords.google.com/select/KeywordToolExternal" target="_blank">The Keyword Tool</a> &#8211; This is Google&#8217;s tool that shows you the amount of searches for a particular keyword (p/ month).  You want to choose the &#8216;Exact&#8217;  match (deselect &#8216;broad&#8217;) and I order by Global Monthly Searches.</li>
<li><a href="http://www.jeffkastner.com/make-money/offers/CPROF" target="_blank">The Spinner</a> &#8211; There&#8217;s a lot of different spinners so feel free to look around if you&#8217;re considering buying.  I like this one.  The idea here is that if you are write an article and post it to an article directory, you want to post that article to a lot of different directories but&#8230; search engines tend to write off exact duplicates so using a spinner will put a thesaurus spin on your article and allow you to be credited with a lot of different articles and therefore, backlinks.</li>
<li><a href="http://www.spyfu.com" target="_blank">SpyFu</a> &#8211; This site lets you see how much a particular topic is worth.  If I&#8217;m considering starting a website on video cameras, just enter that (or a domain name) in the box and go.  I always look for a cost/click of at least .50 or more.  Some keywords generate ridiculously high clicks.  Put mesothelioma in the box and you realize that a single visitor clicking on an ad on your website can yield you $50 to $100!  This is just for a possible lead generation.</li>
<li><a href="http://statcounter.com" target="_blank">StatCounter</a> &#8211; I add a little code to all my websites for the main purposes of knowing exactly how many visitors are stopping by and the exact phrases they searched Google for to get there.  I have multiple spreadsheets with thousands of phrases and when I find repeat phrases, I start backlinking to those phrases through the article directories to give them even more &#8220;juice&#8221; with the search engines.</li>
</ul>
<p>Keep in mind that the more an ad topic pays, the greater the competition.  I personally stick with the low paying niches that have less competition.  If you remember your Statistics lessons, there&#8217;s a concept known as long-tail distribution.  The &#8220;long-tail phenomenon&#8221; says that if a consumer is given unlimited choices, everything becomes available.  This is what the internet has brought about.  So as an internet marketer wants to target keywords (Google searches) that have 4 or more words (as I like to do it) and has low supply, low demand and low competition.  Even though the demand is low, the traffic is all yours.  It&#8217;s a higly targeted audience.  I even target 6 and 7 word phrases on a couple sites with success.</p>
<p>The tail of the curve is extremely long when compared to the head.  The head represents all of those narrow word terms that the major websites specialize in.  It&#8217;s high demand and competition with a low target audience.  Stay away.  Trying to capture traffic from the term &#8220;fat loss&#8221; is a losing battle.   There are millions of sites.  The long tail, however, is never ending.  This means that there&#8217;s no end to what you can market and be successful.</p>
<p>All of the money I make online is about numbers, numbers, numbers.  Having more numbers to crunch is the secret and that includes the amount of websites I put up as well.  I just hit the &#8220;100 mark&#8221; for number of websites.  Having access to 100 sites and all the phrases that have lead people to all of these sites is the key to success.  You start viewing websites in a completely different way and it becomes quite easy to see what might work and what won&#8217;t (though there are always surprises).</p>
<p>That&#8217;s it in a nutshell.  Outside of the above methods, I keep trying new things.  I keep creating new websites with different concepts and I keep analyzing what works.. and what doesn&#8217;t.  Overall though, I have now developed a pretty good sense of what will work before trying it.  Marketing a new website becomes second nature after doing it over and over.  It will for you too if you decide to go the road.</p>
<p>The last big piece of advice is to take action.  I can&#8217;t tell you the amount of conversations I still have with people who are interested in doing something (internet related or other) but never take action.  Taking action of any kind is the key.  Negative results are as important as positive results in achieving success.  &#8221;No results&#8221; are good for nothing.</p>
<p>The best part of AdSense is that it&#8217;s completely passive income.  I only work on websites when I&#8217;m sitting around bored in the evening and after the money starts coming in on a particular site, I never have to touch it again or market it in any way.  It typically just keeps growing on it&#8217;s own every month thereafter.  The extra $$ provided by AdSense allowed me to get my braces this year and now I&#8217;m shooting for getting my mortgage paid within 5 years. There&#8217;s a lot of money to be made online so jump in and grab your share.  If you&#8217;re starting out and have any questions, just let me know.</p>
<p><img class="alignright size-full wp-image-482" title="adsense" src="http://www.jeffkastner.com/wp-content/uploads/2011/05/adcheck.png" alt="adsense" width="424" height="292" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/05/how-to-make-a-lot-of-money-online/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Cron Job Alternative</title>
		<link>http://www.jeffkastner.com/2011/04/cron-job-alternative/</link>
		<comments>http://www.jeffkastner.com/2011/04/cron-job-alternative/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 16:50:06 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[REMOTE SYSTEM ADMINISTRATION]]></category>
		<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=462</guid>
		<description><![CDATA[I needed to run a cron job that would allow me to split up my database queries and lessen the load on my host&#8217;s processor. My MySQL queries were taking 2 &#8211; 3 minutes to run. Step 1: Make sure the column that your query is based on is indexed. An index is used to [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to run a cron job that would allow me to split up my database queries and lessen the load on my host&#8217;s processor.  My MySQL queries were taking 2 &#8211; 3 minutes to run.  </p>
<p>Step 1:  Make sure the column that your query is based on is indexed.  An index is used to quickly find rows with specific column values. Without an index, MySQL must begin with the first row and then read through the entire table to find the relevant rows. The larger the table, the more this costs and the more processor your query consumes.  If you&#8217;re running a large query based on a date (delete from your_table where DATE > &#8230;.), you want to index the date field.  You can easily create an index in the phpMyAdmin interface (by clicking the lightning bolt icon for the specific column name) or if it&#8217;s a new field you&#8217;re adding, you can run a short MySQL command:  CREATE INDEX new_index ON your_table(your_data)</p>
<p>Step 2:  Here&#8217;s where the fun begins.  I decided to divide up my long list of database inserts and deletes and break them up into 7 days.  I then created a new file with the following code that I created, which I called MasterCron.php:  </p>
<p>&lt;?php</p>
<p>$today=date(&quot;w&quot;);<br />
switch ($today)<br />
{<br />
case 0:<br />
//sunday<br />
include &#8216;cron0.php&#8217;;<br />
break;<br />
case 1:<br />
include &#8216;cron1.php&#8217;;<br />
break;<br />
case 2:<br />
include &#8216;cron2.php&#8217;;<br />
break;<br />
case 3:<br />
//wednesday<br />
include &#8216;cron3.php&#8217;;<br />
break;<br />
case 4:<br />
include &#8216;cron4.php&#8217;;<br />
break;<br />
case 5:<br />
//Friday<br />
include &#8216;cron5.php&#8217;;<br />
break;<br />
case 6:<br />
include &#8216;cron6.php&#8217;;<br />
break;<br />
}</p>
<p>?&gt;<br />
That simply calls a different php page (cron0.php, cron1.php, etc..) based on the current day of the week, with a unique set of database instructions for that day.  Now you simply setup a new cron job calling MasterCron.php and let it do all the work.  </p>
<p>The obvious alternative is to create 7 different cron jobs but if you have even 100 websites, you will likely rather see only 100 cron jobs in your list than 700.  This just makes life a little easier.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/04/cron-job-alternative/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Build an RSS Feed with PHP</title>
		<link>http://www.jeffkastner.com/2011/03/how-to-build-an-rss-feed-with-php/</link>
		<comments>http://www.jeffkastner.com/2011/03/how-to-build-an-rss-feed-with-php/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 03:34:14 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=427</guid>
		<description><![CDATA[Last week, I decided to build a new website.  This isn&#8217;t the typical WordPress install that everyone seems to use anymore (whatever happened to programming?) and therefore, it didn&#8217;t have a built in RSS Feed.  This particular site is a picture site and I just planned on promoting my favorite car of all time.. the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://69camaropictures.com" target="_blank"><img class="alignleft size-full wp-image-428" title="1969 Camaro" src="http://www.jeffkastner.com/wp-content/uploads/2011/03/69camaro.jpg" alt="1969 Camaro" width="282" height="179" /></a>Last week, I decided to build a new website.  This isn&#8217;t the typical WordPress install that everyone seems to use anymore (whatever happened to programming?) and therefore, it didn&#8217;t have a built in RSS Feed.  This particular site is a picture site and I just planned on promoting my favorite car of all time.. the <a title="1969 Camaro Pictures" href="http://69camaropictures.com" target="_blank">1969 Camaro</a>.  This being the case, I couldn&#8217;t just visit one of the many &#8220;create your own rss feed&#8221; sites and plugin my url.  There&#8217;s only one picture per page for this setup so those services simply won&#8217;t work.</p>
<p>The first thing I did was do a quick Google search.  I figured this would be easy to find and I&#8217;d just copy some code.  To my amazement, I simply didn&#8217;t find any good resources for this, so&#8230; time for some PHP programming.  I checked out the specs over at rssboard.org and then I began.  The script I made is about as easy as it gets and the idea is simple.  Since my RSS Feed would be a query of more than one table (as is usually the case when you&#8217;re dealing with images), I just needed to do a mysql join on the tables that held the image, the title and description, and then add a date and meet all the specs.</p>
<p>Start with the typical connection to the database:</p>
<p><span style="color: #ff0000;">&lt;?php</span><br />
<span style="color: #ff0000;"> $db_name 	= &#8216;your_db&#8217;;  // name of the database</span><br />
<span style="color: #ff0000;"> $db_user	= &#8216;db_user&#8217;;	// database user</span><br />
<span style="color: #ff0000;"> $db_pass	= &#8216;password&#8217;;	// password to connect to the database</span><br />
<span style="color: #ff0000;"> $db_host	= &#8216;localhost&#8217;;	// host the database resides on</span></p>
<p><span style="color: #ff0000;">$db	= mysql_connect( $db_host, $db_user, $db_pass );</span><br />
<span style="color: #ff0000;"> if ( ! $db ) {</span><br />
<span style="color: #ff0000;"> print &#8220;Error connecting to database server: &#8220;.mysql_error();</span><br />
<span style="color: #ff0000;"> exit;</span><br />
<span style="color: #ff0000;"> }</span></p>
<p><span style="color: #ff0000;">mysql_select_db($db_name);</span><br />
<span style="color: #ff0000;"> ?&gt;</span></p>
<p>Now it&#8217;s time for some rss header requirements:</p>
<p><span style="color: #ff0000;">&lt;? header(&#8216;Content-Type: application/rss+xml&#8217;); ?&gt;</span><br />
<span style="color: #ff0000;">&lt;rss version=&#8221;2.0&#8243; xmlns:atom=&#8221;http://www.w3.org/2005/Atom&#8221;&gt;</span></p>
<p>And now we build the channel.  I needed my final rss feed to simply show a title, description, image and date.  No coding yet.  I&#8217;m still just following the specs as required:</p>
<p><span style="color: #ff0000;">&lt;channel&gt;</span><br />
<span style="color: #ff0000;"> &lt;atom:link href=&#8221;http://www.69camaropictures.com/feed/&#8221; rel=&#8221;self&#8221; type=&#8221;application/rss+xml&#8221; /&gt;</span><br />
<span style="color: #ff0000;"> &lt;title&gt;69 Camaro Pictures&lt;/title&gt;</span><br />
<span style="color: #ff0000;"> &lt;description&gt;RSS Feed for 69 Camaro Pictures&lt;/description&gt;</span><br />
<span style="color: #ff0000;"> &lt;link&gt;http://69camaropictures.com/&lt;/link&gt;</span></p>
<p>Now starts the coding.  We&#8217;ve already connected to the database, so let&#8217;s join the tables and run our query.  You&#8217;ll notice I&#8217;m just ordering by the last 15 in descending order.  In this way, my rss feed always pulls the latest 15 results (the most an rss feed can pull) and there&#8217;s no need to build a loop!  No need to make this hard. I&#8217;m also doing a WHERE clause to make sure there&#8217;s a title as I want a title and picture for every line item.  Modify the query to your table structure and liking.</p>
<p><span style="color: #ff0000;">&lt;?</span><br />
<span style="color: #ff0000;"> $result = mysql_query(&#8220;SELECT image.imageid, image.image, image.title, image.mydate, allcategories.mycategory, allcategories.catid as catid FROM  `image` LEFT JOIN  `allcategories` ON  `image`.`imagecatid` =  `categories`.`id` WHERE title &lt;&gt;  &#8221; ORDER BY images.id DESC LIMIT 0 , 15&#8243;)</span><br />
<span style="color: #ff0000;"> or die(mysql_error());</span></p>
<p>This next part is the WHILE loop.  If you&#8217;re new to programming and just trying this out for the first time, you might skip the WHILE loop for now.  It&#8217;s just using some php functions to clean up the contents of the exported data before it displays on the page.  Get your feed working first.  Then come back and clean it up.  I&#8217;ll still include it, in case some need it.</p>
<p><span style="color: #ff0000;">while($row = mysql_fetch_array( $result )) {</span><br />
<span style="color: #ff0000;"> $mytitle = strip_tags($row['title']);</span><br />
<span style="color: #ff0000;"> $mytitle = str_replace (&#8216;&amp;nbsp;&#8217;,&#8221;,$title);</span><br />
<span style="color: #ff0000;"> $mytitle = stripslashes (str_replace (&#8216;&amp;quot;&#8217;,&#8221;,$mytitle));</span><br />
<span style="color: #ff0000;"> $category = str_replace (&#8216; &#8216;,&#8217;-',$row['mycategory']);</span><br />
<span style="color: #ff0000;"> $mydate = $row['mydate'];</span><br />
<span style="color: #ff0000;"> $mydate = date(&#8220;r&#8221;, strtotime($mydate));</span><br />
<span style="color: #ff0000;"> ?&gt;</span></p>
<p>Okay.. we started the channel above.  Now we have to create the actual line items within that channel:</p>
<p><span style="color: #ff0000;">&lt;item&gt;</span><br />
<span style="color: #ff0000;"> &lt;title&gt;&lt;? echo htmlentities($mytitle); ?&gt;&lt;/title&gt;</span><br />
<span style="color: #ff0000;"> &lt;description&gt;</span></p>
<p>Did you catch what I did there?  If you&#8217;re new to php, make sure you understand that you can stick php code anywhere within html (so long as the page has a .php extension)  by simply inserting a beginning php tag and an ending tag such as this:<br />
<span style="color: #ff0000;">&lt;?  this is your php code ?&gt;</span></p>
<p>Now comes the part that I struggled mightily with.  Interestingly enough, the official specs show examples of how to embed video and other objects but never mention pictures. What the heck?  Turns out that it&#8217;s a pretty sloppy solution so I suspect they left that out intentionally as there&#8217;s no clear way to make it happen.  I just kept trying (and failing) until I eventually figured it out.  This next section will grab a large image,  trim it down to 150 x 140 (or whatever size you specify) and display it perfectly in your rss feed.</p>
<p><span style="color: #ff0000;">&amp;lt;IMG width=&#8221;150&#8243; height=&#8221;140&#8243; border=&#8221;0&#8243; src=&#8221;http://69camaropictures.com/pics/images/pic/&lt;?=$row['image']; ?&gt;&#8221;</span><br />
<span style="color: #ff0000;"> alt=&#8221;my image&#8221;/&amp;gt;&lt;/description&gt;</span></p>
<p>It looks like I forgot a tag or two above there and the browser rendered my html incorrectly, but that&#8217;s the actual code you need and the reason it provided a challenge to me.</p>
<p>The next line is how you build a link to your page.  You already have the url to your picture page and if you pulled all the data you need from your database on your query above, simply substitute those values and build your url.  This is my structure:</p>
<p><span style="color: #ff0000;">&lt;guid isPermaLink=&#8221;true&#8221;&gt;http://69camaropictures.com/categories/&lt;? echo strtolower($mycategory); ?&gt;,&lt;?=$row['catid']; ?&gt;/picture-&lt;?=$row['imageid']; ?&gt;/&lt;/guid&gt;</span></p>
<p>Finish your item out and close the tags.  I will mention that you do need to use the date code above (or your own variation) in my WHILE loop to convert the date, as the date element must be an RFC-822 date-time for a valid RSS feed.  You&#8217;re likely not exporting that format from your mysql database.</p>
<p><span style="color: #ff0000;">&lt;pubDate&gt;&lt;?=$mydate; ?&gt;&lt;/pubDate&gt;</span><br />
<span style="color: #ff0000;"> &lt;/item&gt;</span><br />
<span style="color: #ff0000;">&lt;? } ?&gt;</span><br />
<span style="color: #ff0000;">&lt;/channel&gt;</span><br />
<span style="color: #ff0000;">&lt;/rss&gt;</span></p>
<p>That&#8217;s it!  You can validate the feed at w3.org to make sure there are no errors.  After you get your feed built, go to feedburner.com (a Google service) and burn a new feed with their service.  Now, you can use their tools for a subscription service and automatic emails to your subscribers when new content is released on your site.</p>
<p>The code looks even simpler when you pull the database connection information out and simply do a php include statement to connect to your database.  Here&#8217;s the simplified version (using the include statement to connect).  Enjoy!</p>
<p><span style="color: #ff0000;">&lt;? header(&#8216;Content-Type: application/rss+xml&#8217;); ?&gt;</span><br />
<span style="color: #ff0000;"> &lt;? include &#8216;rssconfig.php&#8217;; ?&gt;</span><br />
<span style="color: #ff0000;"> &lt;rss version=&#8221;2.0&#8243; xmlns:atom=&#8221;http://www.w3.org/2005/Atom&#8221;&gt;</span><br />
<span style="color: #ff0000;"> &lt;channel&gt;</span><br />
<span style="color: #ff0000;"> &lt;atom:link href=&#8221;&lt;?=$site_url?&gt;/feed/&#8221; rel=&#8221;self&#8221; type=&#8221;application/rss+xml&#8221; /&gt;</span><br />
<span style="color: #ff0000;"> &lt;title&gt;&lt;?=$rss_title ?&gt;&lt;/title&gt;</span><br />
<span style="color: #ff0000;"> &lt;description&gt;&lt;?=$rss_description ?&gt;&lt;/description&gt;</span><br />
<span style="color: #ff0000;"> &lt;link&gt;&lt;?=$site_url?&gt;/&lt;/link&gt;</span><br />
<span style="color: #ff0000;"> &lt;?</span><br />
<span style="color: #ff0000;"> include &#8216;../include/myconfig.php&#8217;; //this line just connects to the database</span><br />
<span style="color: #ff0000;"> $result = mysql_query(&#8220;SELECT image.title, image.description, image.id, image.mydate FROM  `image` WHERE title &lt;&gt;  &#8221; ORDER BY image.id DESC LIMIT 0 , 15&#8243;)</span><br />
<span style="color: #ff0000;"> or die(mysql_error());</span></p>
<p><span style="color: #ff0000;">while($row = mysql_fetch_array( $result )) {</span><br />
<span style="color: #ff0000;"> $mydate = $row['mydate'];</span><br />
<span style="color: #ff0000;"> $mydate = date(&#8220;r&#8221;, strtotime($mydate));</span><br />
<span style="color: #ff0000;"> ?&gt;</span><br />
<span style="color: #ff0000;"> &lt;item&gt;</span><br />
<span style="color: #ff0000;"> &lt;title&gt;&lt;? echo htmlentities($mytitle); ?&gt;&lt;/title&gt;</span><br />
<span style="color: #ff0000;"> &lt;description&gt;</span><br />
<span style="color: #ff0000;"> &amp;lt;IMG width=&#8221;150&#8243; height=&#8221;140&#8243; border=&#8221;0&#8243; src=&#8221;&lt;?=$site_url?&gt;/pics/images/pic/&lt;?=$row['image']; ?&gt;&#8221;</span><br />
<span style="color: #ff0000;"> alt=&#8221;rss image&#8221;/&amp;gt;&lt;/description&gt;</span><br />
<span style="color: #ff0000;"> &lt;guid isPermaLink=&#8221;true&#8221;&gt;&lt;?=$site_url?&gt;/categories/&lt;? echo strtolower($title); ?&gt;,&lt;?=$row['id']; ?&gt;/picture-&lt;?=$row['id']; ?&gt;/&lt;/guid&gt;</span><br />
<span style="color: #ff0000;"> &lt;pubDate&gt;&lt;?=$mydate; ?&gt;&lt;/pubDate&gt;</span><br />
<span style="color: #ff0000;"> &lt;/item&gt;</span><br />
<span style="color: #ff0000;"> &lt;? } ?&gt;</span><br />
<span style="color: #ff0000;">&lt;/channel&gt;</span><br />
<span style="color: #ff0000;"> &lt;/rss&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/03/how-to-build-an-rss-feed-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VPS Hosting</title>
		<link>http://www.jeffkastner.com/2011/02/vps-hosting/</link>
		<comments>http://www.jeffkastner.com/2011/02/vps-hosting/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 04:06:26 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[REMOTE SYSTEM ADMINISTRATION]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=424</guid>
		<description><![CDATA[The time has come to enter the world of VPS Hosting.  I recently launched my 100th website and I have pretty much maxed out my shared hosting plan.  I run a Python script to watch memory and my memory allocation is often running over 40MB all night long.  That&#8217;s a lot! Most shared plans don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>The time has come to enter the world of VPS Hosting.  I recently launched my 100th website and I have pretty much maxed out my shared hosting plan.  I run a Python script to watch memory and my memory allocation is often running over 40MB all night long.  That&#8217;s a lot! Most shared plans don&#8217;t even allow for over 32MB at one time so I&#8217;ve been fortunate to at least be the benefactor of a great shared hosting company that allows for 80MB of RAM.</p>
<p>For those not quite sure of the differences and trying to figure out what might hosting option might be best, here&#8217;s a quick run-down:</p>
<p><strong>Shared Hosting:</strong> This is where most people start and probably all that most will ever need.  I pay right at $5 a month at WebFaction and if you&#8217;re looking for shared hosting, I couldn&#8217;t recommend a better host for your website.  The support is top notch and they maintain their servers well, so you&#8217;re websites rarely, if ever, go down.</p>
<p>The disadvantage of shared hosting is that your website is hosted on a server with hundreds of other websites.  The worst of shared hosts (and I&#8217;ve had them in the past) will try to push the number of shared sites past 1000 on a single machine.  With shared hosting, you share all the RAM and CPU with every website hosted on the same server.</p>
<p>If you feel that you&#8217;re website is growing quickly and getting a lot of traffic the next step is likely VPS Hosting.</p>
<p><strong>VPS Hosting</strong>:  This is a very scalable and flexible solution that is still very affordable, though a bit more pricey than shared hosting.  With VPS hosting, the RAM is yours and yours alone as well as disk space.  You do share the CPU with other sites, though a VPS is typically a very powerful server and processing capacity shouldn&#8217;t be a problem.  As far as pricing goes, I&#8217;m currently paying for a VS3 package, which includes 1024 RAM, 60GB of disk space and 2500GB of bandwidth.  If I can manage to outgrow this server, I&#8217;ll be making a pretty nice income.</p>
<p>Keep in mind that VPS hosting will require a lot more knowledge than a shared account.  With a VPS, you login to your virtual server and you control everything.  For a typical setup, you&#8217;ll use the Linux Operating System, as most online websites are Linux hosted, with a variation of a popular Linux distribution.  I&#8217;m using CentOS. Ubuntu is probably the easiest of all to manage.  Your VPS host will install the initial image and turn the machine over to you from there.  There&#8217;s also &#8220;managed&#8221; and &#8220;unmanaged&#8221; VPS Hosting.  If you&#8217;re not familiar with Linux, be sure that you buy into a Managed VPS solution.</p>
<p>A VPS is also typically sold with &#8216;Burstable RAM&#8217; which can be used for a short period of time if needed.  It&#8217;s a peak amount that can be used if needed.  This is a great insurance policy for keeping your website running.</p>
<p>If you&#8217;ve outgrown a VPS, it&#8217;s time to look at Dedicated Hosting.</p>
<p><strong>Dedicated Hosting:</strong> Your website is the only one on the server.  All resources, including CPU, RAM and disk space, are yours and yours alone.  A good dedicated server can cost from about $100 to $300 a month on average.  If you&#8217;re ready to move up to a dedicated server, chances are that you already know a lot about this option.</p>
<p>And that&#8217;s the typical options available with hosting.  I&#8217;ll be posting on how to manage the Linux CentOS VM in future posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/02/vps-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Use Yahoo Pipes</title>
		<link>http://www.jeffkastner.com/2011/01/how-to-use-yahoo-pipes/</link>
		<comments>http://www.jeffkastner.com/2011/01/how-to-use-yahoo-pipes/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 08:04:47 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=418</guid>
		<description><![CDATA[In building a new website the last couple weeks, I&#8217;ve become very familiar with Yahoo Pipes. If you&#8217;re kind of interested in programming but not really wanting to learn a complete language, check out Yahoo Pipes. Yahoo Pipes lets you do mashups of different content and work with RSS feeds in some very clever ways. [...]]]></description>
			<content:encoded><![CDATA[<p>In building a new website the last couple weeks, I&#8217;ve become very familiar with Yahoo Pipes.  If you&#8217;re kind of interested in programming but not really wanting to learn a complete language, check out Yahoo Pipes.  Yahoo Pipes lets you do mashups of different content and work with RSS feeds in some very clever ways.  RSS feeds are a great way to make money online.  Grabbing RSS feeds allows you to build sites with automated content and thereby, keep increasing that online income.</p>
<p>Perhaps my favorite thing to do is scrape HTML pages without having to code for it.  The &#8216;Fetch Page&#8217; module works quite effectively.  I like to grab content and RSS feeds, store it in a MySQL database, automate the process and then retrieve it for dynamic website creation.</p>
<p>If you haven&#8217;t checked it out yet, stop by and give a look at <a title="Yahoo pipes" href="http://pipes.yahoo.com/pipes/" target="_blank">Yahoo Pipes</a>.  If you&#8217;re interested in how to make money using Yahoo Pipes, spend a few bucks and pickup a <a title="Yahoo Pipes Guide" href="http://www.jeffkastner.com/make-money/offers/RDRNR12">great guide I found here</a>.  It&#8217;s well worth the investment (a whopping $15).  I got my return within the first month of the first website I built and the site has been doing better ever since.  I&#8217;m currently building several more from the same model.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2011/01/how-to-use-yahoo-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use $_GET[&#039;id&#039;] to Pass a PHP/MySQL Variable</title>
		<link>http://www.jeffkastner.com/2010/12/using-getid-to-pass-php-variable-from-mysq/</link>
		<comments>http://www.jeffkastner.com/2010/12/using-getid-to-pass-php-variable-from-mysq/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 19:57:09 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=391</guid>
		<description><![CDATA[Here's a simple explanation on extracting data from your MySQL database and using the all powerful GET method to move the data from page to page on your website.  ]]></description>
			<content:encoded><![CDATA[<p>One of the most popular questions I get about php is how to pass a variable from one page to another.  The GET and POST methods can be a little bit confusing at first but once you grasp how to use these, building a website becomes a pretty fun process.  This post presents a very simplistic approach to using the GET method.</p>
<p>I&#8217;ll preface this example by telling you that most of the money I make online is usinig the GET method.  All you need is a MySQL database full of records and the GET method allows you to extract all of your information.  Create some pagination and you have a website with hundreds or thousands of database records.  I highly encourage everyone to learn PHP and start figuring out how to pull MySQL data to your website pages.</p>
<p>And now for the example..</p>
<p>First, we&#8217;ll create a webpage called phptest1.php and pull some records to it from our database.  To do this, we need to first connect to the database and then query it (If you don&#8217;t know how to connect to a mysql database, I have example code in my <a title="How to Create an RSS Feed With PHP" href="http://www.jeffkastner.com/2011/03/how-to-build-an-rss-feed-with-php/">rss feed article</a>).  Copy the following to phptest1.php and upload it to your web directory:</p>
<p><span style="color: #ff0000;">&lt;?</span><br />
<span style="color: #ff0000;"> // config.php has our database connection information so we have to call it first:</span><br />
<span style="color: #ff0000;"> INCLUDE &#8216;config.php&#8217;;</span></p>
<p><span style="color: #ff0000;">//we assign the variable from the config.php to $link</span><br />
<span style="color: #ff0000;"> $link = mysql_connect($db_host, $db_user, $db_pass);</span><br />
<span style="color: #ff0000;"> mysql_select_db($db_name, $link);</span></p>
<p><span style="color: #ff0000;">//For this example, we&#8217;re going to pull 10 records from the database (LIMIT 0 , 10):</span><br />
<span style="color: #ff0000;"> $sql_statement = &#8216;SELECT TITLE, description, SOURCE FROM things ORDER BY DATE DESC LIMIT 0 , 10&#8242;;</span><br />
<span style="color: #ff0000;"> $result = mysql_query($sql_statement, $link);</span></p>
<p><span style="color: #ff0000;">//now we create a while &#8220;loop&#8221; to fetch all 10 records:</span><br />
<span style="color: #ff0000;"> while ($curr_row = mysql_fetch_assoc($result)) {</span></p>
<p><span style="color: #ff0000;">// This next line just simply pulls the title from our database and displays it:</span><br />
<span style="color: #ff0000;"> echo $title;</span><br />
<span style="color: #ff0000;"> echo &#8216;&lt;br&gt;&lt;br&gt;&#8217;;</span></p>
<p><span style="color: #ff0000;">//This one shows how to concantenate php variables with html.. pulling both the title and</span><br />
<span style="color: #ff0000;"> description from our database:</span><br />
<span style="color: #ff0000;"> echo &#8216;&lt;font SIZE=&#8221;2&#8243; face=&#8221;sans-serif&#8221;&gt;&lt;b&gt;&lt;h5&gt;&#8217; . $curr_row['title'] . &#8216;&lt;/h5&gt;&lt;/b&gt;&#8217; .</span><br />
<span style="color: #ff0000;"> &#8216;&amp;nbsp;&amp;nbsp;&#8217; . $curr_row['description'] . &#8216;&#8230;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&#8217;;</span></p>
<p><span style="color: #ff0000;">//And this line is the one that we&#8217;ll use to create our new page.  It&#8217;s a hyperlink that is calling our new page &#8220;phptest2.php&#8221; and populating it with the title.</span><br />
<span style="color: #ff0000;"> echo &#8220;&lt;a  href=&#8217;phptest2.php?id=&#8221; . $curr_row['title'] . &#8220;&#8216;&gt;&#8221;. $curr_row['title'] .&#8221;&lt;/a&gt;&#8221;;</span></p>
<p><span style="color: #ff0000;">}  // This closed bracket ends our WHILE LOOP.  So long as there are conditions to be met above this bracket, they will run until finished and then continue past this.</span></p>
<p><span style="color: #ff0000;">mysql_free_result($result); // Release our sql query.  It&#8217;s not necessary, just good</span><br />
<span style="color: #ff0000;"> programming.</span><br />
<span style="color: #ff0000;"> ?&gt;</span></p>
<p>Okay.. so there&#8217;s the main page of our site.  You can pull as few or as many records as you want to it, but better now is that we simply create phptest2.php.  As you can see above, we call this page in our hyperlink and it&#8217;s all that&#8217;s needed to display all the records in our database as unique pages.  With only 2 pages uploaded, we can have a website with thousands of pages, as they&#8217;re all dynamically created and just representing each individual record in our database.  Style your website and you&#8217;re all finished.</p>
<p>Create phptest2.php and it&#8217;s as short and simple as adding this to it:</p>
<p><span style="color: #ff0000;">&lt;?</span><br />
<span style="color: #ff0000;"> $title=$_GET['id'];</span><br />
<span style="color: #ff0000;"> echo $title;</span><br />
<span style="color: #ff0000;"> ?&gt;</span></p>
<p>Play around with it.  Format your rows, send different ids through your url and mix up your result set.  If you learn how to do the above, you&#8217;re well on your way to becoming a php programmer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2010/12/using-getid-to-pass-php-variable-from-mysq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated Websites for Income</title>
		<link>http://www.jeffkastner.com/2010/11/automated-websites-for-income/</link>
		<comments>http://www.jeffkastner.com/2010/11/automated-websites-for-income/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 23:02:41 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=377</guid>
		<description><![CDATA[Automated content on websites is becoming quite popular. As many of my close friends and family can attest, I&#8217;m closing in on $800 a month with automated sites. That&#8217;s just free passive income that comes to me every month, paid by Google through their AdSense program. I engage in other affiliate programs as well, for [...]]]></description>
			<content:encoded><![CDATA[<p>Automated content on websites is becoming quite popular.  As many of my close friends and family can attest, I&#8217;m closing in on $800 a month with automated sites.  That&#8217;s just free passive income that comes to me every month, paid by Google through their AdSense program.  I engage in other affiliate programs as well, for some additional compensation (I&#8217;ve just started with Amazon), but my testing has shown me that nothing comes close to AdSense for monetizing a website.  </p>
<p>So just what is an automated website?  It&#8217;s a website that runs a scheduled &#8220;job&#8221; for content updates.  You basically build it and let it run itself.  You put AdSense ads throughout the site.  Users arrive to your site through the power of Google search and when they see an enticing ad, they click it and you get a percentage of what the advertiser paid to run that listing (placed through the Google AdWords program, for advertisers).  </p>
<p>To update my content, I typically use a cron job.  A cron job is an automatic scheduler for Unix-like operating systems.  These Unix boxes are what most websites are hosted on.  Here&#8217;s an example:</p>
<blockquote><p>* * * * * /usr/local/bin/php /home/jeff/webapps/mysite/cron.php > /home/jeff/log4cron.log 2>&#038;1</p></blockquote>
<p>Those first five asteriks specify the time interval that my jobs run.  Each asterik represents the following, respectively:</p>
<blockquote><p>minute   hour   day   month   day-of-week</p></blockquote>
<p>If I want  to run a job every day at 11:50am, I would replace the asteriks with the following:<br />
50 11 * * * /usr/local/bin/php /home/jeff/webapps/mysite/cron.php </p>
<p>If I want to run a job every hour, I would do this:</p>
<blockquote><p>0 * * * * /usr/local/bin/php /home/jeff/webapps/mysite/cron.php</p></blockquote>
<p>Easy enough, right?  I then add the last part of the line on for logging purposes.  It&#8217;s not necessary but if you run many sites, you&#8217;ll want to keep an eye on your logs.  So running a cron job every hour, with logging enabled, I would exectute the following command: </p>
<blockquote><p>0 * * * * /usr/local/bin/php /home/jeff/webapps/mysite/cron.php > /home/jeff/log4cron.log 2>&#038;1</p></blockquote>
<p>Now that we&#8217;ve covered cron, I&#8217;ll mention an even easier option.  WordPress blogs can utilize a built in cron method and that&#8217;s what I do for many of my websites.  If you&#8217;re new to website building, start with WordPress and branch out from there.  Chances are that it&#8217;s all you&#8217;ll need.</p>
<p>If you&#8217;re still not quite sure what I mean by &#8220;automated content&#8221; or &#8220;auto-sites&#8221;, as they&#8217;re commonly referred to, it&#8217;s the process of grabbing content elsewhere on the web and putting it on your website.  This creates more links to your site and grows your organic traffic (traffic sent to you by search engines such as Google).    </p>
<p>Automated content building raises a lot of eyebrows in the blogging world.  In fact, I did a Google search before writing this article and was surprised to see how many bloggers despise it.  I found far many more negative reviews than positive.  This stands to reason, since successful bloggers spend many hours a week writing content and promoting their sites.  To be successful in blogging, that&#8217;s a must.  It&#8217;s as much work as it is fun.  Imagine opening a store to sell widgets (college Economics flashback!) and working it hard for 5 years.  You&#8217;ve built up a steady stream of customers and despite it taking up a lot of your time, it&#8217;s become profitable.  Suddenly, a shop opens up next door and they too sell widgets, but have a new automated process.  It works so smoothly that the owner doesn&#8217;t even need to be there to make sales and it&#8217;s even more profitable than your shop. They can mass produce widgets and put 20 of them on the showroom floor in the time it takes you to make one. It&#8217;s easy to see why the bloggers don&#8217;t like automated content.  The most often heralded complaint is that of producing quantity over quality.  That&#8217;s fair, because that&#8217;s exactly what automated website building does.  However, if the process is far more profitable and less time consuming, isn&#8217;t it a logical and intelligent approach to making money online?  If you now had the opportunity to buy that new widget store, free up all of your time and make even more money, wouldn&#8217;t you? Automated websites require no marketing or social promotion.  That is priceless in the online world.</p>
<p>I&#8217;ve also read several blogs claiming that autoblogging will not make you money.  People throw out figures of a couple bucks a month p/ domain.  That&#8217;s simply wrong.  My best autosite earnings from a single domain topped over $200 last month, and that&#8217;s less than six months of that site being online.  It is fair to point out, however, that this site is my top producer and I have all amounts in between, including a couple that have yet to gross a single dollar in this same time frame.  Being in the right niche means everything online, rather you&#8217;re blogging, autositing or building a traditional static website.  </p>
<p>In a final word on quantity over quality, I will side with the blogging world on one criticism in particular.  I don&#8217;t agree with scraping the content of personal blogs.  My automated sites scrape ebay and Amazon (two examples) for products.  These companies benefit by having me advertise for them and sending more people to their websites, allowing them to sell more product and creating income for the all of us. They even create APIs that I use on my websites to make the process even easier.  There are hundreds of ways and scripts to grab content off of websites but stealing the personal works by a particular author is something I would never condone or approve of.  To get around the problem of Google detecting duplicate content (a penalty that carries a result of not linking to your website), many scripts will engage in &#8220;article spinning&#8221; or changing words around enough that Google doesn&#8217;t make the association.  These are the sites we all arrive at that seemingly have a lot of content but fail to make a lot of sense.  These are the sites that I hope Google learns more about and bans, as they make the user experience of surfing the web far less desirable for everyone.  </p>
<p>Autosites are still a bit hush-hush in the online world.  The reason being, they work and people don&#8217;t like to give their secrets away.  Why am I?  I&#8217;m not too concerned as my best performing sites are created solely by a php script that I developed myself (which I&#8217;m not listing here).  With this, I&#8217;ll always have a niche and a way to duplicate earnings by simply creating more websites.  The site I listed above is my first experiment with this particular format and if it completely fails or if it&#8217;s copied a million times, it will not impact my earnings. If it works though, then I have yet another working method.  My goal here is to present a more honest look at automated websites and encourage others to get on board.  Quite honestly, the AdSense pie is plenty big enough for everyone and I&#8217;d like to see more of my friends and family get involved.  My gut feeling is that the autosite fad will work for the next half decade or so and we will likely see too many of these creations, at which point the search engines will dismiss them.  That&#8217;s all just speculation though.  We will see.  For now.. Autosites work!</p>
<p>If you&#8217;re interested in learning more, put your name in that little subscribe box in the top right of this page.  I do plan on releasing a couple must-have scripts that I use for this process.  I just need to clean them up a bit first.  </p>
<p>Let me know if you have any questions or comments. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2010/11/automated-websites-for-income/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Deleting WordPress Posts With MySQL</title>
		<link>http://www.jeffkastner.com/2010/11/deleting-wordpress-posts-with-mysql/</link>
		<comments>http://www.jeffkastner.com/2010/11/deleting-wordpress-posts-with-mysql/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 06:50:56 +0000</pubDate>
		<dc:creator>Jeff Kastner</dc:creator>
				<category><![CDATA[WEB LIFE]]></category>

		<guid isPermaLink="false">http://www.jeffkastner.com/?p=365</guid>
		<description><![CDATA[WordPress only lets you view 20 posts at a time through the admin panel and that means that you can only delete 20 posts at a time. The fact is that there are times you may need to delete hundreds or even thousands of posts at a time and I can&#8217;t imagine taking a &#8220;20 [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress only lets you view 20 posts at a time through the admin panel and that means that you can only delete 20 posts at a time.  The fact is that there are times you may need to delete hundreds or even thousands of posts at a time and I can&#8217;t imagine taking a &#8220;20 posts at a time&#8221; approach to this.  I often import WordPress posts and tonight, I did a 1200 post bulk insert into a WordPress database, only to discover that I made an error that required a re-import.  Here&#8217;s some mysql queries that might help you in deleting WordPress posts.   </p>
<p>Aside from the wp_posts table (which clearly holds the bulk of your WordPress post data), wp_term_taxonomy.term_taxonomy_id = wp_terms.term_id.  We don&#8217;t really have to know this, as we can just look in the WordPress control panel to see what our category is.  But.. it&#8217;s all part of understanding the table structure.  If you delete posts directly from wp_posts, you&#8217;ll still see the posts count in your &#8216;categories widget&#8217; as well as in the wp_term_taxonomy table because these other tables are holding the related data and WordPress still thinks you have posts out there.  </p>
<blockquote><p>SELECT * FROM &#8216;wp_term_relationships&#8217; WHERE term_taxonomy_id =3</p></blockquote>
<p>Tying the tables together&#8230;.   </p>
<blockquote><p>select * from wp_term_relationships, wp_term_taxonomy<br />
WHERE wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id<br />
AND wp_term_taxonomy.taxonomy = &#8216;category&#8217; AND wp_term_taxonomy.term_id = 3</p></blockquote>
<p>Let&#8217;s add the wp_terms table in:</p>
<blockquote><p>SELECT * from wp_term_relationships, wp_term_taxonomy, wp_terms<br />
WHERE wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id<br />
AND wp_term_taxonomy.taxonomy = &#8216;category&#8217; AND wp_term_taxonomy.term_id = 3<br />
AND wp_terms.term_id = wp_term_taxonomy.term_id</p></blockquote>
<blockquote><p>
SELECT * from wp_term_relationships a<br />
  JOIN wp_term_taxonomy b ON b.term_taxonomy_id = a.term_taxonomy_id<br />
  JOIN wp_terms c ON c.term_id = b.term_id<br />
WHERE<br />
  b.taxonomy = &#8216;category&#8217; AND b.term_id = 3;
</p></blockquote>
<p>Alright.. let&#8217;s add the wp_posts table back in and delete all posts by category:</p>
<blockquote><p>DELETE a,d &#8212; tables to delete from<br />
FROM wp_term_relationships a<br />
JOIN wp_term_taxonomy b ON b.term_taxonomy_id = a.term_taxonomy_id<br />
JOIN wp_terms c ON c.term_id = b.term_id<br />
JOIN wp_posts d ON d.id = a.object_id<br />
WHERE<br />
b.taxonomy = &#8216;category&#8217; AND b.term_id = 3</p></blockquote>
<p>Delete all posts and associated categories:</p>
<blockquote><p>
DELETE a,b,c,d &#8212; tables to delete from<br />
FROM wp_term_relationships a<br />
JOIN wp_term_taxonomy b ON b.term_taxonomy_id = a.term_taxonomy_id<br />
JOIN wp_terms c ON c.term_id = b.term_id<br />
JOIN wp_posts d ON d.id = a.object_id<br />
WHERE<br />
b.taxonomy = &#8216;category&#8217;</p></blockquote>
<p> Hopefully, I got all the syntax right.  I didn&#8217;t save it while I was doing it so this is from memory and it&#8217;s almost 2am.  You can verify that it&#8217;s doing the job by creating a new category and then a single post and deleting from that category.  The script should delete from multiple tables, so you&#8217;ll get more than 1 record affected, but the post will be gone and the category there.   Let me know if see anything wrong (sleep deprivation is kicking in), or if you you have any questions.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeffkastner.com/2010/11/deleting-wordpress-posts-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

