<?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>Dennis Clayton Design, Development &#38; Communication Solutions&#187; API</title>
	<atom:link href="http://claytond.com/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://claytond.com</link>
	<description>Web Development, Hosting, IT Consulting, Technology Solutions</description>
	<lastBuildDate>Sat, 12 Nov 2011 22:55:13 +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>Rackspace Cloud Servers now Openly Beta Testing Windows Server 2003/8</title>
		<link>http://claytond.com/2010/02/02/rackspace-cloud-server-now-beta-testing-windows-vps-machines/</link>
		<comments>http://claytond.com/2010/02/02/rackspace-cloud-server-now-beta-testing-windows-vps-machines/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:10:54 +0000</pubDate>
		<dc:creator>Dennis Clayton</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[ATOM]]></category>
		<category><![CDATA[CDN]]></category>
		<category><![CDATA[cherokee]]></category>
		<category><![CDATA[Cloud Files]]></category>
		<category><![CDATA[CrystalTech]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[MediaTemple]]></category>
		<category><![CDATA[Mosso]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rackspace]]></category>
		<category><![CDATA[SingleHop]]></category>
		<category><![CDATA[SliceHost]]></category>
		<category><![CDATA[Windows Server 2003/8]]></category>
		<category><![CDATA[XEN]]></category>

		<guid isPermaLink="false">http://idude.org/?p=530</guid>
		<description><![CDATA[As I&#8217;ve stated in the past, I&#8217;ve used a lot of different hosting providers and still have services remaining at most of them in some capacity.  With Rackspace Cloud (formerly Mosso), I still have Cloud Files CDN service on standby in case I need it.   On 2-2-2010, I got an email notifying me that they [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://idude.org/wp-content/uploads/2010/02/image97.png"><img class="size-medium wp-image-532 alignright" title="image97" src="http://idude.org/wp-content/uploads/2010/02/image97-298x300.png" alt="" width="141" height="141" /></a>As I&#8217;ve stated in the past, I&#8217;ve used a lot of different hosting providers and still have services remaining at most of them in some capacity.  With Rackspace Cloud (formerly Mosso), I still have Cloud Files CDN service on standby in case I need it.   On 2-2-2010, I got an email notifying me that they have started offering Windows VPS for beta testing.  This is very exciting for me as it was one of the main features I wanted in Slicehost (which I still have 1 256mb Slice).</p>
<p>I setup a 512mb Windows 2003 Server to test. So far it seems to be quite excellent and fast. On speedtest.net, I got 67mb down, 27mb up. Not bad. It looks like the Windows 2003 Servers are running under XEN and the 2008 are most likely under Microsoft&#8217;s Hyper-V.  The new machine I setup did have SP2 on it, but was unpatched otherwise.  First thing I did was update everything.  The Windows Firewall is completely closed off by default at least.</p>
<p><a href="http://idude.org/wp-content/uploads/2010/02/windows-logo.jpg"><img class="size-medium wp-image-531 alignright" title="windows-logo" src="http://idude.org/wp-content/uploads/2010/02/windows-logo-300x265.jpg" alt="" width="128" height="113" /></a>I&#8217;m definitely going to keep testing it on Rackspace, but it would be nice to have one control panel and have them available via Slicehost.com as well. Even it if is an extension to the Slicehost control panel accessing Rackspace Cloud&#8217;s API. Better integration of the Slicehost offerings with the Rackspace Cloud services would help both entities since they should be one big happy family now. <img src='http://claytond.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I almost wish they would merge completely and integrate all the features from both sides of the house.  I&#8217;m sure that&#8217;ll happen in time as the old loyal power users move off to Linode (I moved 4 VPS to Linode) and it&#8217;ll have the least impact, churn-wise, if done smoothly.</p>
<p>My setup, if anyone is interested, is the following:</p>
<ul>
<li>1x256mb Slicehost VPS running Cherokee/MySQL hosting ~25 sites.</li>
<li>3x360mb Linodes + 1x540mb Linode.  3 Servers are dedicated to individual customers, the other is for more sites I maintain.  Mostly running Cherokee/MySQL or Apache/MySQL.</li>
<li>1x1024mb CrystalTech VPS  running Windows 2008 for hosting email and websites for a number of customers</li>
<li>1x2048mb SingleHop Server running Windows 2003 for a few sites that wouldn&#8217;t work correctly under 2008 for a number of reasons.  This is an Intel ATOM based Server w/ 320gb HDD.  Not bad for $99.</li>
<li>2xMedia Temple Grid accounts for customer sites that need higher scalability.</li>
</ul>
<p>If the Rackspace Windows VPS works out well, I&#8217;ll probably move the stuff off SingleHop since the Rackspace pricing is much better for me and SingleHop&#8217;s server is overkill memory and HDD wise for a few relatively basic websites and apps.</p>
<p>But I will say SingleHop&#8217;s services have been EXCELLENT in the year or so I&#8217;ve been using them.  No complaints at all, 0% downtime that I, or my monitoring software, have observed.  Good customer service and GREAT prices for dedicated servers.  I just don&#8217;t need dedicated servers at the moment.  If I did, SingleHop would be the place I&#8217;d go for both Linux and Windows dedicated.</p>
<p>CrystalTech has also been extremely reliable and fast, but the pricing is way too high, in my opinion.  $149 (including backups) for a 1024mb VPS w/ 60gb HDD when I can get a dedicated for not much more at SingleHop.</p>
<p>I&#8217;ll post more on Rackspace Cloud as I start using it more.</p>
]]></content:encoded>
			<wfw:commentRss>http://claytond.com/2010/02/02/rackspace-cloud-server-now-beta-testing-windows-vps-machines/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Utilizing Akismet Spam Blocker in a PHP Contact Form</title>
		<link>http://claytond.com/2008/05/14/utilizing-akismet-spam-blocker-in-a-php-contact-form/</link>
		<comments>http://claytond.com/2008/05/14/utilizing-akismet-spam-blocker-in-a-php-contact-form/#comments</comments>
		<pubDate>Thu, 15 May 2008 01:33:42 +0000</pubDate>
		<dc:creator>Dennis Clayton</dc:creator>
				<category><![CDATA[Cool Stuff]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Akismet]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Class Automattic]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP5]]></category>

		<guid isPermaLink="false">http://www.idude.org/?p=181</guid>
		<description><![CDATA[I have a contact form on my company’s website that I have had serious problems with in the past… The past being before I implemented Akismet into the code. Akismet is a service provided by Automattic (the creators of WordPress) and is an excellent API based spam blocking system. I’ve been using it for quite [...]]]></description>
			<content:encoded><![CDATA[<p>I have a contact form on my company’s website that I have had serious problems with in the past… The past being before I implemented <a href="http://www.akismet.com/" target="_blank">Akismet</a> into the code.</p>
<p>Akismet is a service provided by Automattic (the creators of WordPress) and is an excellent API based spam blocking system. I’ve been using it for quite a while on my blog and rogue spams hardly EVER make it into my comments. Probably somewhere in the neighborhood of only 1-2 out of thousands make it through.</p>
<p>I will post both the basic code for a contact form as well as the <a href="http://www.achingbrain.net/stuff/akismet/">Akismet PHP5 Class</a> (from Alex) and the include file I created to utilize the PHP5 Class.</p>
<p>Here is the basic form (named contact.php), with the PHP code on top, that I use.</p>
<p><strong>&lt;?php<br />
if ($_SERVER["REQUEST_METHOD"] == “POST”)<br />
{<br />
include ‘akismet.php’;</strong></p>
<p><strong>$to = “<em>YOUR EMAIL ADDRESS</em>“;<br />
$subject = $_REQUEST["Subject"];<br />
$message = $_REQUEST["Message"].”&lt;BR&gt;&lt;BR&gt;”.$_REQUEST["Phone"].”&lt;BR&gt;”.$_REQUEST["URL"];<br />
$from = $_REQUEST["Email"];</strong></p>
<p><strong>$headers = ‘From:’.$from.”rn” .<br />
‘X-Mailer: PHP/’ . phpversion() .”rn”.<br />
‘Content-type: text/html’.”rn”.<br />
‘Date: ‘.date(”r”).”rn”;</strong></p>
<p><strong>mail($to, $subject, $message, $headers);</strong></p>
<p><strong>echo “Message Sent!”;<br />
die();<br />
}<br />
?&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;My Contact Form&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;</strong></p>
<p><strong>&lt;form action=”contact.php” method=”POST”&gt;<br />
&lt;table align=”left”&gt;<br />
&lt;tr&gt;<br />
&lt;td align=”right”&gt;Your name:&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=”Name” type=”text”&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=”right”&gt;Website:&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=”URL” type=”text”&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=”right”&gt;Your email:&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=”Email” type=”text”&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=”right”&gt;Subject:&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=”Subject” type=”text”&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=”right”&gt;Message:&lt;/td&gt;<br />
&lt;td&gt;&lt;textarea name=”Message” style=”width: 224px; height: 83px”&gt;&lt;/textarea&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align=”right”&gt;Your phone:&lt;/td&gt;<br />
&lt;td&gt;&lt;input name=”Phone” type=”text”&gt;(Optional)&lt;/td&gt;<br />
&lt;/tr&gt;</strong></p>
<p><strong>&lt;tr&gt;<br />
&lt;td&gt; &lt;/td&gt;<br />
&lt;td&gt;&lt;input name=”Submit” type=”submit” value=”submit”&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;</strong></p>
<p><strong>&lt;/body&gt;<br />
&lt;/html&gt;</strong></p>
<p>contact.php includes the code I created to use the Akismet PHP5 Class mentioned earlier.</p>
<p>Here is the code for the akismet.php. Be sure to change the $WebsiteURL variable to your website address and $APIKey variable to the API key you already have. If you do not have one, signup for a <a href="http://wordpress.com/" target="_blank">WordPress.com</a> account and you can get one free.</p>
<p><strong>&lt;?php<br />
//Akisment PHP5 Class from Alex (http://www.achingbrain.net/stuff/php/akismet)<br />
include ‘Akismet.class.php’;</strong></p>
<p><strong>//ENTER YOUR API KEY ON THE LINE BELOW!<br />
$APIKey = ‘<em>YOUR_API_KEY</em>‘;</strong></p>
<p><strong>//Enter your web site address below.  This is used as a parameter in the API call to Akismet…<br />
$WebsiteURL = ‘<em>YOUR_WEBSITE_ADDRESS</em>‘;</strong></p>
<p><strong>//Call to check for valid API Key…<br />
$akismet = new Akismet($WebsiteURL, $APIKey);</strong></p>
<p><strong>//Check to see if your API key is valid, if not, it will tell you so and stop.</strong></p>
<p><strong>if($akismet-&gt;isKeyValid()) {}else{echo “Your API key is NOT valid!”;die();}</strong></p>
<p><strong>if ($_SERVER["REQUEST_METHOD"] == “POST”) {</strong></p>
<p><strong>//CHANGE the $_REQUEST items to match your form field input element names</strong></p>
<p><strong>$akismet = new Akismet($WebsiteURL, $APIKey);  //<br />
$akismet-&gt;setCommentAuthor($_REQUEST["Name"]);<br />
$akismet-&gt;setCommentAuthorEmail($_REQUEST["Email"]);<br />
$akismet-&gt;setCommentAuthorURL($_REQUEST["URL"]);<br />
$akismet-&gt;setCommentContent($_REQUEST["Message"]);<br />
$akismet-&gt;setPermalink($_SERVER["HTTP_REFERER"]);</strong></p>
<p><strong>//IF THE MESSAGE IS FOUND TO BE SPAM, A MESSAGE WILL BE DISPLAYED.  Customize as needed.</strong></p>
<p><strong>if($akismet-&gt;isCommentSpam()) {<br />
echo “For some reason, your message was flagged as a possible SPAM message.”;<br />
die();<br />
}<br />
//IF THE MESSAGE MAKES IT TO THIS POINT, IT IS VALID AND THE SCRIPT THAT CALLED THIS<br />
//FILE WILL CONTINUE PROCESSING THE INPUT ACCORDINGLY…</strong></p>
<p><strong>}<br />
?&gt;</strong></p>
<p><strong></strong><a href="/wp-content/uploads/2008/05/akismet-php_basic_contact_form.zip" target="_self">Click here</a> to download a ZIP of the three files used in this example.</p>
<p>If you have any questions, leave a comment here and I’ll do my best to answer in a timely manner…</p>
]]></content:encoded>
			<wfw:commentRss>http://claytond.com/2008/05/14/utilizing-akismet-spam-blocker-in-a-php-contact-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic

Served from: claytond.com @ 2012-02-10 09:18:13 -->
