<?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"
	>

<channel>
	<title>benrasmusen.com &#187; PHP</title>
	<atom:link href="http://benrasmusen.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://benrasmusen.com</link>
	<description>a web professional committed to creating value</description>
	<pubDate>Sat, 23 Aug 2008 00:09:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>FriendFeedback.com - Quickly get anonymous feedback from friends</title>
		<link>http://benrasmusen.com/work/friendfeedbackcom-quickly-get-anonymous-feedback-from-friends/</link>
		<comments>http://benrasmusen.com/work/friendfeedbackcom-quickly-get-anonymous-feedback-from-friends/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 23:44:51 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/?p=126</guid>
		<description><![CDATA[I&#8217;m proud to announce the launch of FriendFeedback.com.  A simple application that lets you quickly and easily get anonymous feedback from your friends.  The idea is that if you want some feedback on something from your friends, they may not always be willing to give you an honest opinion to your face.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m proud to announce the launch of <a href="http://friendfeedback.com">FriendFeedback.com</a>.  A simple application that lets you quickly and easily get anonymous feedback from your friends.  The idea is that if you want some feedback on something from your friends, they may not always be willing to give you an honest opinion to your face.  This application lets them respond anonymously and hopefully truthfully.</p>
<p>It&#8217;s certainly not anything life changing, but it was a fun application to build and design (yikes! I said it! I design the site, so forgive me if it makes your eyes bleed).  Let me know what you think and feel free to comment here or contact me if you have any bugs to report or any features to suggest.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/ruby-on-rails/scriptconsole-and-other-ruby-on-rails-wonders/" title=".script/console and other ruby on rails wonders">.script/console and other ruby on rails wonders</a></li>
<li><a href="http://benrasmusen.com/technology/apple-event-today/" title="Apple Event Today">Apple Event Today</a></li>
<li><a href="http://benrasmusen.com/work/the-new-office/" title="The New Office">The New Office</a></li>
<li><a href="http://benrasmusen.com/technology/flipstart-handheld-pc-windows-compatible/" title="Flipstart handheld PC - Windows Compatible">Flipstart handheld PC - Windows Compatible</a></li>
<li><a href="http://benrasmusen.com/fatherhood/fatherhood-introduction/" title="Fatherhood - Introduction">Fatherhood - Introduction</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/friendfeedbackcom-quickly-get-anonymous-feedback-from-friends/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FTWeet.com - Your FTW vs FTL Ratio on Twitter</title>
		<link>http://benrasmusen.com/entertainment/ftweetcom-your-ftw-vs-ftl-ratio-on-twitter/</link>
		<comments>http://benrasmusen.com/entertainment/ftweetcom-your-ftw-vs-ftl-ratio-on-twitter/#comments</comments>
		<pubDate>Thu, 29 May 2008 01:48:44 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/?p=116</guid>
		<description><![CDATA[I just finished adding some final touches to a new app: ftweet.com.  FTWeet.com is just a simple application that lets you see what your FTW (for the win) to FTL (for the loss) ratio is on twitter.com.  I wanted to get a cumulative score of my overall emotional read based on how many [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished adding some final touches to a new app: <a href="http://ftweet.com">ftweet.com</a>.  FTWeet.com is just a simple application that lets you see what your FTW (for the win) to FTL (for the loss) ratio is on <a href="http://twitter.com">twitter.com</a>.  I wanted to get a cumulative score of my overall emotional read based on how many times I used FTW and FTL (silly I know, but it was bored and it was quick to code).  It&#8217;s not anything crazy but kind of neat to checkout.  It uses the <a href="http://summize.com">summize.com</a> API and my good friend <a href="http://n0s0ap.com">Ben Lew</a> hooked up the sweet design.</p>
<p>My ratio can be found at <a href="http://ftweet.com/benrasmusen">ftweet.com/benrasmusen</a>.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/uncategorized/nursery-completed/" title="Nursery Completed">Nursery Completed</a></li>
<li><a href="http://benrasmusen.com/uncategorized/what-is-going-on/" title="What is going on?">What is going on?</a></li>
<li><a href="http://benrasmusen.com/uncategorized/hesitation/" title="Hesitation">Hesitation</a></li>
<li><a href="http://benrasmusen.com/america/i-am-a-most-unhappy-man-woodrow-wilson/" title="&#8220;I am a most unhappy man.&#8221; - Woodrow Wilson">&#8220;I am a most unhappy man.&#8221; - Woodrow Wilson</a></li>
<li><a href="http://benrasmusen.com/featured/bounteocom/" title="Bounteo.com">Bounteo.com</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/entertainment/ftweetcom-your-ftw-vs-ftl-ratio-on-twitter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CheckYesOrNo.info - Quick yes or no polls</title>
		<link>http://benrasmusen.com/technology/checkyesornoinfo-quick-yes-or-no-polls/</link>
		<comments>http://benrasmusen.com/technology/checkyesornoinfo-quick-yes-or-no-polls/#comments</comments>
		<pubDate>Tue, 06 May 2008 20:20:33 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/?p=114</guid>
		<description><![CDATA[Gordon Brander and I have launched another side project: CheckYesOrNo.info.  It&#8217;s a super simple site that allows you to ask quick yes or no questions.  It&#8217;s like those notes you used to get from girls back in Junior High.  Jump right in and check it out by answering this question: http://checkyesorno.info/5.
Some other entries you might enjoy:

BlueHost and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gordonbrander.com">Gordon Brander</a> and I have launched another side project: <a href="http://checkyesorno.info">CheckYesOrNo.info</a>.  It&#8217;s a super simple site that allows you to ask quick yes or no questions.  It&#8217;s like those notes you used to get from girls back in Junior High.  Jump right in and check it out by answering this question: <a href="http://checkyesorno.info/5">http://checkyesorno.info/5</a>.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/technology/observations-sms-and-radio/" title="Observations: SMS and Radio">Observations: SMS and Radio</a></li>
<li><a href="http://benrasmusen.com/uncategorized/worst-spare-tire/" title="Worst Spare Tire">Worst Spare Tire</a></li>
<li><a href="http://benrasmusen.com/uncategorized/first-post-of-2007/" title="First Post of 2007">First Post of 2007</a></li>
<li><a href="http://benrasmusen.com/america/milton-friedman-on-limited-government/" title="Milton Friedman on Limited Government">Milton Friedman on Limited Government</a></li>
<li><a href="http://benrasmusen.com/technology/apple-event-today/" title="Apple Event Today">Apple Event Today</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/technology/checkyesornoinfo-quick-yes-or-no-polls/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Townsquare.biz - the easiest way to get your business online</title>
		<link>http://benrasmusen.com/work/townsquarebiz-the-easiest-way-to-get-your-business-online/</link>
		<comments>http://benrasmusen.com/work/townsquarebiz-the-easiest-way-to-get-your-business-online/#comments</comments>
		<pubDate>Fri, 02 May 2008 17:27:08 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[Featured]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/?p=113</guid>
		<description><![CDATA[Gordon Brander and I are proud to announce the Beta launch of a new web application we&#8217;ve been working on for the last couple of months, Townsquare.biz.  Townsquare allows businesses to create an online presence quickly and easily.  The idea behind it is that there are a lot of small businesses that would like to [...]]]></description>
			<content:encoded><![CDATA[<p><a title="GordonBrander.com" href="http://gordonbrander.com">Gordon Brander</a> and I are proud to announce the Beta launch of a new web application we&#8217;ve been working on for the last couple of months, <a title="TownSquare.biz" href="http://townsquare.biz/">Townsquare.biz</a>.  Townsquare allows businesses to create an online presence quickly and easily.  The idea behind it is that there are a lot of small businesses that would like to have an online presence but don&#8217;t want to spend a lot of money or time having a website built.  Townsquare gives them a clean semantic website with a very simple interface, so business owners can quickly get their business online as well as keep it up to date.  </p>
<p>Here is a couple of the features currently available:</p>
<ul>
<li>Complete control over the look and feel of the site via CSS</li>
<li>Add/Edit/Delete web pages</li>
<li>A blog, which can be used for project announcements or news</li>
<li>Embedded maps on the page</li>
<li>Clean, semantic, micro formatted code to aid in SEO.</li>
</ul>
<div>Head on over and check it out and let me know what you think.  All suggestions, questions and feedback are welcome.  To view a sample page head to <a title="Townsquare.biz/benrasmusen" href="http://townsquare.biz/benrasmusen">townsquare.biz/benrasmusen</a>.</div>
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/entertainment/ftweetcom-your-ftw-vs-ftl-ratio-on-twitter/" title="FTWeet.com - Your FTW vs FTL Ratio on Twitter">FTWeet.com - Your FTW vs FTL Ratio on Twitter</a></li>
<li><a href="http://benrasmusen.com/technology/corporate-espionage-20/" title="Corporate Espionage 2.0">Corporate Espionage 2.0</a></li>
<li><a href="http://benrasmusen.com/ruby-on-rails/scriptconsole-and-other-ruby-on-rails-wonders/" title=".script/console and other ruby on rails wonders">.script/console and other ruby on rails wonders</a></li>
<li><a href="http://benrasmusen.com/technology/im-an-apple-addict/" title="I&#8217;m an Apple addict">I&#8217;m an Apple addict</a></li>
<li><a href="http://benrasmusen.com/uncategorized/first-snow/" title="First Snow">First Snow</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/townsquarebiz-the-easiest-way-to-get-your-business-online/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Craigslist.org OPML Exporter</title>
		<link>http://benrasmusen.com/work/craigslistorg-opml-exporter/</link>
		<comments>http://benrasmusen.com/work/craigslistorg-opml-exporter/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 20:25:20 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/?p=112</guid>
		<description><![CDATA[When I first started freelancing I was looking for a way to get an RSS feed of all the computer gigs on craigslist.org for every city in the USA.  Since most of these postings were telecommunting position it didn&#8217;t matter what city they were posted in.  But grabbing the feed manually from 300+ cities on [...]]]></description>
			<content:encoded><![CDATA[<p>When I first started freelancing I was looking for a way to get an RSS feed of all the computer gigs on <a href="http://craigslist.org/">craigslist.org</a> for every city in the USA.  Since most of these postings were telecommunting position it didn&#8217;t matter what city they were posted in.  But grabbing the feed manually from 300+ cities on craigslist was clearly not the best option.  To solve this need I have written a quick script that loops through all the craigslist.org cities of your choosing and grabs the RSS feed for the query of your choice.  This allows you to search for anything, not just computer gigs.</p>
<p>I hereby present: <a href="http://benrasmusen.com/clexporter/">Craigslist.org OPML Exporter</a></p>
<p>Hopefully some of you will find this useful.  Please don&#8217;t hesitate to <a href="http://benrasmusen.com/contact-me/">contact me</a> with questions or suggestions.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/uncategorized/what-is-going-on/" title="What is going on?">What is going on?</a></li>
<li><a href="http://benrasmusen.com/uncategorized/new-rss/" title="New RSS">New RSS</a></li>
<li><a href="http://benrasmusen.com/entertainment/commercial-free-national-public-radio/" title="Commercial Free National Public Radio">Commercial Free National Public Radio</a></li>
<li><a href="http://benrasmusen.com/entertainment/thanks-ze-frank-for-the-show/" title="Thanks Ze Frank for the Show">Thanks Ze Frank for the Show</a></li>
<li><a href="http://benrasmusen.com/uncategorized/noah-bradley-rasmusen/" title="Noah Bradley Rasmusen">Noah Bradley Rasmusen</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/craigslistorg-opml-exporter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Find and Replace Regular Expression</title>
		<link>http://benrasmusen.com/work/find-and-replace-regular-expression/</link>
		<comments>http://benrasmusen.com/work/find-and-replace-regular-expression/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 21:33:04 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Technology]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/2008/03/13/find-and-replace-regular-expression/</guid>
		<description><![CDATA[I find myself creating a fair amount of forms for websites.  I normally want to grab the $_POST variables and assign them to local variables.  I found a relatively easy way to do this using the power of TextMates Regular Expression Search and Replace.  Once the form is created I submit it, [...]]]></description>
			<content:encoded><![CDATA[<p>I find myself creating a fair amount of forms for websites.  I normally want to grab the $_POST variables and assign them to local variables.  I found a relatively easy way to do this using the power of TextMates Regular Expression Search and Replace.  Once the form is created I submit it, dump the $_POST array between some &#8216;pre&#8217; tags and grab the output.  Paste the output into your file and do the following search and replace.  Don&#8217;t forget to check the &#8216;Regular Expressions&#8217; box.</p>
<p>In the &#8216;Find&#8217; Box:<br />
<code><br />
\[(.?*)\] => (.?*)<br />
</code></p>
<p>In the &#8216;Replace&#8217; Box:<br />
<code><br />
\$$1 = $_POST['$1'];<br />
</code></p>
<p>Turn this:<br />
<code><br />
[field_1] => asdfa<br />
[field_2] => sdfas<br />
[field_3] => dfasd<br />
[field_4] => fasdfasf<br />
</code></p>
<p>Into this:<br />
<code><br />
$field_1 = $_POST['field_1'];<br />
$field_2 = $_POST['field_2'];<br />
$field_3 = $_POST['field_3'];<br />
$field_4 = $_POST['field_4'];<br />
</code><br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/fatherhood/fatherhood-chapter-3/" title="Fatherhood - Chapter 3">Fatherhood - Chapter 3</a></li>
<li><a href="http://benrasmusen.com/uncategorized/simple-things-in-life/" title="Simple Things in Life">Simple Things in Life</a></li>
<li><a href="http://benrasmusen.com/technology/rockstartupcom/" title="Rockstartup.com">Rockstartup.com</a></li>
<li><a href="http://benrasmusen.com/work/my-absence-from-blogging/" title="My Absence from Blogging">My Absence from Blogging</a></li>
<li><a href="http://benrasmusen.com/technology/delicious-20-preview-from-techcrunch/" title="Delicious 2.0 Preview from TechCrunch">Delicious 2.0 Preview from TechCrunch</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/find-and-replace-regular-expression/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Dynamic Joomla! Content Pages</title>
		<link>http://benrasmusen.com/work/dynamic-joomla-content-pages/</link>
		<comments>http://benrasmusen.com/work/dynamic-joomla-content-pages/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 21:30:28 +0000</pubDate>
		<dc:creator>Ben Rasmusen</dc:creator>
		
		<category><![CDATA[Joomla!]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Virtuemart]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://benrasmusen.com/2007/03/27/dynamic-joomla-content-pages/</guid>
		<description><![CDATA[Joomla! is a good CMS as far as CMS&#8217;s go, but as with any piece of software, it has it&#8217;s limitations.  Of course it can&#8217;t be all things to all people, but it does a fairly good job.
Recently I was looking to create some content pages using Joomla!&#8217;s article setup.  The idea was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.joomla.org/">Joomla!</a> is a good CMS as far as CMS&#8217;s go, but as with any piece of software, it has it&#8217;s limitations.  Of course it can&#8217;t be all things to all people, but it does a fairly good job.</p>
<p>Recently I was looking to create some content pages using Joomla!&#8217;s article setup.  The idea was to create &#8216;articles&#8217; about certain products to be used for landing pages.  These pages would have product specific information which was already contained in the <a href="http://virtuemart.net/">Virtuemart</a> database.  I thought it relatively silly and un-<a href="http://en.wikipedia.org/wiki/DRY">DRY</a> to have to recreate the content in this new page when it already existed in another part of the site.  Not to mention the hassle of having to make sure the two remained consistent (such as prices or product names).</p>
<p>Normally I would just write some PHP/MySQL to handle this but of course that isn&#8217;t allowed natively within a Joomla! article and for good reason.  Fortunately I found two Joomla! <a href="http://extensions.joomla.org/">Extensions</a> that do the trick nicely.</p>
<p><strong><a href="http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,779/Itemid,35/">RunPHP</a></strong></p>
<p>This allows you to write PHP right in the article by wrapping it in {runphp}{/runphp} tags.  This is super handy and works great.  I&#8217;m able to pull data from my Virtuemart database and drop it right into the article, as well as have more conditional control over different aspects of the article content.</p>
<p><a href="http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1376/Itemid,35/"><strong>MosSnippet</strong></a></p>
<p>This Mambot is neat because it allows you to use multiple languages and markups with standard syntax (as opposed to RunPHP which obviously only works with PHP).Â Â  The only drawback is that you have to pre-write these snippets in the administrative side of this Mambot before you can use them in your article.Â  So you write your code and save it as a snippet in the Mambot (you have 15 slots available by default) and then you can call it in your article by using {snippet name} replacing &#8216;name&#8217; with the actual name of your snippet.Â  This works well if you have a snippet of code you use repeatedly (such as dynamic tracking code perhaps?) and is nice because you can use multiple programming languages.<br />
<h3>Some other entries you might enjoy:</h3>
<ul class="related_post">
<li><a href="http://benrasmusen.com/technology/guy-kawasaki-on-woz/" title="Guy Kawasaki on Woz">Guy Kawasaki on Woz</a></li>
<li><a href="http://benrasmusen.com/uncategorized/simple-things-in-life/" title="Simple Things in Life">Simple Things in Life</a></li>
<li><a href="http://benrasmusen.com/technology/why-i-no-longer-have-a-facebookcom-account/" title="Why I no longer have a FaceBook.com account">Why I no longer have a FaceBook.com account</a></li>
<li><a href="http://benrasmusen.com/technology/delicious-20-preview-from-techcrunch/" title="Delicious 2.0 Preview from TechCrunch">Delicious 2.0 Preview from TechCrunch</a></li>
<li><a href="http://benrasmusen.com/uncategorized/biking-to-work/" title="Biking to work">Biking to work</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://benrasmusen.com/work/dynamic-joomla-content-pages/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in -0.557 seconds -->
