<?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>WP Pro - Design, Development and Professional WordPress Hosting for Serious Bloggers &#187; PHP</title>
	<atom:link href="http://www.wppro.org/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wppro.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 07 May 2010 18:36:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Site Hacked: Site Name Changed to &quot;Cheap Viagra&quot;</title>
		<link>http://www.wppro.org/2010/04/site-hacked-site-name-changed-to-cheap-viagra/</link>
		<comments>http://www.wppro.org/2010/04/site-hacked-site-name-changed-to-cheap-viagra/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 12:18:18 +0000</pubDate>
		<dc:creator>Sunny</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://www.wppro.org/?p=178</guid>
		<description><![CDATA[I have been pretty behind on keeping up with all things WP and might have missed the boat on the latest WP pitfalls, but found it the hard way that my site(s) were hacked on my new server for the first time since WordPress 2.5. I have been up to speed on all upgrades, all [...]]]></description>
			<content:encoded><![CDATA[<p>I have been pretty behind on keeping up with all things WP and might have missed the boat on the latest WP pitfalls, but found it the hard way that my site(s) were hacked on my new server for the first time since <a "target=_blank" href="http://www.headsetoptions.org/2008/04/28/wordpress-25-upgrade-wordpress-251-is-available-please-update-now-message-appears-after-upgrade-troubleshooting/">WordPress 2.5</a>.</p>
<p><img src="http://www.wppro.org/wp-content/uploads/2010/04/wppro-hacked.jpg" alt="" title="wppro-hacked" width="515" height="292" class="alignleft size-full wp-image-179" /></p>
<p>I have been up to speed on all upgrades, all within 24 hours of release and never over 48 hours. So I am not suggesting the issue is/was related to WordPress, but the only common component of all the sites that were hacked was WP. The way to identify if your site is hacked is to Google the name or a keyword that will pull your site in the SERP, if in the list of names your site appears with a name other than what you have set it to be (in my case it turned out to be Cheap viagra) then you know you are in trouble. One other thing I noticed is that it prevents one from uploading images or media via the built in WordPress Upload/Insert feature while writing or editing a post/page.</p>
<p>The only thing I found that I do not recall adding is an “addhandler php4-script .php” tag in my .htaccess file. Not sure if that was the source of the exploit but I did restore the htaccess files to the original (pre-hack) state and hope for the problem to go away.</p>
<p>If you find you site has similar issues then look in the htaccess file (if you have one) for something like “addhandler php4-script .php”, there is no way for me to tell that is the problem but there seem to be no issue with deleting that line from the file. Hope it helps, leave a comment if you know more on this topic or have had similar experience. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wppro.org/2010/04/site-hacked-site-name-changed-to-cheap-viagra/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Make your Codes &quot;Friendly&quot;</title>
		<link>http://www.wppro.org/2007/07/how-to-make-your-codes-friendly/</link>
		<comments>http://www.wppro.org/2007/07/how-to-make-your-codes-friendly/#comments</comments>
		<pubDate>Thu, 12 Jul 2007 02:19:18 +0000</pubDate>
		<dc:creator>Sunny</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tag]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.headsetoptions.org/2007/07/11/how-to-make-your-codes-friendly/</guid>
		<description><![CDATA[Have you found yourself wanting to display a piece of code in your blog post or a comment form that left you stripping off elements or re-pasting it over and over only to find that the code is actually being executed? I run in this issue a lot while replying to support questions, so I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wppro.org/wp-content/uploads/2008/10/codefriendlyconverters.jpg"><img class="alignright size-full wp-image-129" title="codefriendlyconverters" src="http://www.wppro.org/wp-content/uploads/2008/10/codefriendlyconverters.jpg" alt="" width="200" height="100" /></a>Have you found yourself wanting to display a piece of code in your blog post or a comment form that left you stripping off elements or re-pasting it over and over only to find that the code is actually being executed? I run in this issue a lot while replying to support questions, so I conveniently remove the &#8220;&lt;&#8221; and &#8220;&gt;&#8221; of all HTML tags and PHP scripts to allow the codes to to be displayed without execution, this however cause more harm than help to the novice user and the experience is never that pleasant. Help is finally here!<br />
A combination of using the &#8220;code&#8221; tag and converted the base code by using converters like <a title="postable" href="http://www.elliotswan.com/postable/" target="_blank">Postable</a> makes for a delightful toll that allows users to share, copy and paste codes without any hassles and guesswork. Here&#8217;s how you go about it.</p>
<ol>
<li>Copy your code (HTML or PHP or whatever else) and paste it in the Postable post area (which at first will read &#8220;For your copy-and-pasting pleasure.&#8221;).</li>
<li>Click the &#8220;make me friendly&#8221; button</li>
<li>The code is converted to characters, for example &lt; will be converted to &amp; l t ;</li>
<li>Copy the characters and past it on your blog post or comment within code tags</li>
<li>That’s it.</li>
</ol>
<p>In order to demonstrate how it works, I have copied and pasted a piece of code from one of our latest themes below using Postable conversion:</p>
<pre><code>
&lt;?php if (have_posts()) <img src='http://www.wppro.org/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> &gt;
&lt;?php $postCount=0; ?&gt;
&lt;?php while (have_posts()) : the_post();?&gt;
&lt;?php $postCount++;?&gt;
&lt;div class="entry entry-&lt;?php echo $postCount ;?&gt;"&gt;
&lt;h2 class="entry-title"&gt;&lt;a href="&lt;?php the_permalink(); ?&gt;" title="&lt;?php the_title(); ?&gt;" rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p class="meta"&gt;
Posted &lt;?php the_time('m.d.Y'); ?&gt; at &lt;?php the_time('g:i a') ?&gt; in &lt;?php the_category(', ') ?&gt;&lt;?php if (function_exists('the_tags')) { ?&gt;&lt;?php the_tags(', ', ', ', ''); ?&gt;&lt;?php } ?&gt; received &lt;strong&gt;&lt;?php comments_popup_link('Have your say »', '1 Comment »', '% Comments »'); ?&gt;&lt;/strong&gt;.
&lt;/p&gt;
</code></pre>
<p>The code is then displayed in a format that can be copied and pasted and never executed. Works fine to me!</p>
<p class="note">Update: Two other tools of significant use are <a href="http://www.simplebits.com/cgi-bin/simplecode.pl?mode=process" target="_blank">SimpleCode</a> by Dan Cederholm which I have adopted as part of the comment form on this site and elsewhere and the user submitted <a href="http://www.jeremymartin.name/projects.php?project=asciible" target="_blank">Asciible</a> converters!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wppro.org/2007/07/how-to-make-your-codes-friendly/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

