<?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>Forums, Blogs, Wikis &#187; tips</title>
	<atom:link href="http://forumsblogswikis.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://forumsblogswikis.com</link>
	<description>News on forums, blogs, wikis, cms, etc</description>
	<lastBuildDate>Tue, 09 Feb 2010 11:37:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP &#8211; Return first n words from a string</title>
		<link>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/</link>
		<comments>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 13:00:25 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=340</guid>
		<description><![CDATA[Do you ever find yourself needing to shorten a string in PHP? Maybe return the first 25 words of a long story? Give this routine a try. It will return the first n words from a string, or the entire string if it is less than n words long.

PLAIN TEXT
PHP:




function shorten_string&#40;$string, $wordsreturned&#41;


/*&#160; Returns the first [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/02/01/php-return-first-n-words-from-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nextSaturday and lastSunday functions for PHP</title>
		<link>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/</link>
		<comments>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 12:56:32 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=339</guid>
		<description><![CDATA[I needed a way to find the first second of a week and the last second of a week based on a Unix timestamp.
Credit for the previous Sunday goes to Shaun who posted a way to find it on the PHP site for strftime, although I changed his code a little because I'm more comfortable [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/02/01/nextsaturday-and-lastsunday-functions-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add a timer to Eventum</title>
		<link>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/</link>
		<comments>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 16:39:05 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[eventum]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=338</guid>
		<description><![CDATA[I've been using Eventum for a while to keep track of bugs in a web application of mine.  There was one feature missing that I really needed, and which made me switch to dotProject for a few months and that was a timer.  When I'm working on a bug I wanted a way [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/01/02/adding-a-timer-to-eventum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing a page from FireFox</title>
		<link>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/</link>
		<comments>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 15:13:53 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Links]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=322</guid>
		<description><![CDATA[Found a quick little JavaScript trick that lets you edit page content from within FireFox.  Copy and paste the following into your address bar and press enter.
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
Everything on the page becomes editable.  Sure, it doesn't affect the file on server.  But once you're done you can save the resulting [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/12/07/editing-a-page-from-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMF and StopForumSpam.com</title>
		<link>http://forumsblogswikis.com/2008/12/03/smf-and-stopforumspamcom/</link>
		<comments>http://forumsblogswikis.com/2008/12/03/smf-and-stopforumspamcom/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 03:02:59 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Unfiled]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[Forums]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SMF]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=321</guid>
		<description><![CDATA[Found a great site over at StopForumSpam.com.  Over the past few weeks I've been checking registrations on a couple of my forums against their database. What I've found is that most of the registrations have been spammers and they've gotten the axe.  But after deleting 15-20 per day I wanted a little more [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/12/03/smf-and-stopforumspamcom/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Google Alerts now available in RSS</title>
		<link>http://forumsblogswikis.com/2008/11/01/google-alerts-now-available-in-rss/</link>
		<comments>http://forumsblogswikis.com/2008/11/01/google-alerts-now-available-in-rss/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 15:05:02 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Unfiled]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[search engines]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=319</guid>
		<description><![CDATA[Google Alerts is now available through an RSS feed instead of having to come through email.  If you're not already using  Google Alerts to keep track of news for your sites, now may be a good time to start.
]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/11/01/google-alerts-now-available-in-rss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Get custom field function</title>
		<link>http://forumsblogswikis.com/2008/10/10/wordpress-get-custom-field-function/</link>
		<comments>http://forumsblogswikis.com/2008/10/10/wordpress-get-custom-field-function/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 01:10:42 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=317</guid>
		<description><![CDATA[On several WordPress projects I've needed to get the value of a custom field.&#160; Not too difficult using the get_post_meta command, but I wanted a little quicker way.&#160; So I now add this little function to the functions.php file on themes I'm working on.
PLAIN TEXT
PHP:




function getMeta&#40;$key&#41;


&#123;


global $post;


return get_post_meta&#40;$post-&#62;ID, $key&#41;;


&#125; 







Say you've got a custom field [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/10/10/wordpress-get-custom-field-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debug function for FireBug</title>
		<link>http://forumsblogswikis.com/2008/09/20/debug-function-for-firebug/</link>
		<comments>http://forumsblogswikis.com/2008/09/20/debug-function-for-firebug/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 12:26:06 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=302</guid>
		<description><![CDATA[If you do much JavaScript coding and have FireBug odds are good you know that you can call console.info() to output to the FireBug console.  But what happens if you leave your console.info() call in your code and a visitor looks with IE?  It'll throw an error.  So here's a quick, little [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/09/20/debug-function-for-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>isApache() and isIIS() functions for PHP</title>
		<link>http://forumsblogswikis.com/2008/09/12/isapache-and-isiis-functions-for-php/</link>
		<comments>http://forumsblogswikis.com/2008/09/12/isapache-and-isiis-functions-for-php/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 13:57:48 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=301</guid>
		<description><![CDATA[A couple quick little functions for when you need to know if you're running on Apache or IIS.
PLAIN TEXT
PHP:




function isApache&#40;&#41;


&#160; &#160; &#123;


&#160; &#160; return &#40;&#40;bool&#41; preg_match&#40;'/Apache/i', $_SERVER&#91;'SERVER_SOFTWARE'&#93;&#41;&#41;; 


&#160; &#160; &#125;


function isIIS&#40;&#41;


&#160; &#160; &#123;


&#160; &#160; return &#40;&#40;bool&#41; preg_match&#40;'/IIS/i', $_SERVER&#91;'SERVER_SOFTWARE'&#93;&#41;&#41;;


&#160; &#160; &#125; 






isApache() will return true if it's running on an Apache server and false if not. [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/09/12/isapache-and-isiis-functions-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trimming array elements in PHP</title>
		<link>http://forumsblogswikis.com/2008/08/11/trimming-array-elements-in-php/</link>
		<comments>http://forumsblogswikis.com/2008/08/11/trimming-array-elements-in-php/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 22:03:28 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=296</guid>
		<description><![CDATA[Several times I've had a user setting that was separated by commas that I needed to split out into an array.  People, correctly, put a space after commas.  But for the array the space shouldn't be there.  Here's a quick tip to strip out those leading spaces.
PLAIN TEXT
PHP:




$array = array_map&#40;'trim', $array&#41;; 






array_map [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/08/11/trimming-array-elements-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
