<?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; php</title>
	<atom:link href="http://forumsblogswikis.com/tag/php/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>1</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>Prototype returning status code 0 in Opera</title>
		<link>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/</link>
		<comments>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/#comments</comments>
		<pubDate>Thu, 01 Jan 2009 20:18:50 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=337</guid>
		<description><![CDATA[Seems like browsers don't handle Ajax calls returning a 204 no content status code very well.  I've had issues with IE7 gets a 1223 status code instead of the 204.  Well, it looks like Opera, at least 9.5.1, gets 0 as the status code. 
I'm using Prototype version 1.6.0.3 to handle the Ajax [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2009/01/01/prototype-returning-status-code-0-in-opera/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Holiday Cheer on Forums</title>
		<link>http://forumsblogswikis.com/2008/12/28/holiday-cheer-on-forums/</link>
		<comments>http://forumsblogswikis.com/2008/12/28/holiday-cheer-on-forums/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 05:02:28 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[SMF]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=336</guid>
		<description><![CDATA[Seems like Google has made it popular to change the logo of a website for holidays.&#160; 
My question is how many of y’all do the same, and more importantly do your members like it?&#160; 
Over on my photography forum I switched out the default logo with a winter themed one for Christmas.&#160; It’s scheduled to [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/12/28/holiday-cheer-on-forums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress, source code, and smart quotes</title>
		<link>http://forumsblogswikis.com/2008/12/15/wordpress-source-code-and-smart-quotes/</link>
		<comments>http://forumsblogswikis.com/2008/12/15/wordpress-source-code-and-smart-quotes/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 00:02:04 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Links]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=323</guid>
		<description><![CDATA[Turns out WordPress tries to make your posts look a little better by swapping out all normal quotes with smart quotes.  That's great for typography, but really bad when you're posting source code like I often do on here.  Trying to run pasted code with smart quotes in it will bring PHP down [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/12/15/wordpress-source-code-and-smart-quotes/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>isDivisible function for PHP</title>
		<link>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/</link>
		<comments>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 21:45:41 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=320</guid>
		<description><![CDATA[A quick function to check if a number is divisible by another.  
PLAIN TEXT
PHP:




function isDivisible&#40;$number, $divisibleBy&#41;


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


&#160; &#160; if &#40;$number % $divisibleBy == 0&#41;


&#160; &#160; &#160; &#160; return true;


&#160; &#160; return false; 


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






]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/11/15/isdivisible-function-for-php/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>Bookmarking threads on an SMF board</title>
		<link>http://forumsblogswikis.com/2008/09/27/bookmarking-threads-on-an-smf-board/</link>
		<comments>http://forumsblogswikis.com/2008/09/27/bookmarking-threads-on-an-smf-board/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 23:24:30 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[SMF]]></category>
		<category><![CDATA[bookmark]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[Forums]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simple machines]]></category>

		<guid isPermaLink="false">http://forumsblogswikis.com/?p=306</guid>
		<description><![CDATA[This is one of those features I've been wanting to add to my photography forum for a while now, but I just got around to it this weekend.
With the addition of a database table, a new template file, a few source files, and changes to several others, my Simple Machines Forum now gives my users [...]]]></description>
		<wfw:commentRss>http://forumsblogswikis.com/2008/09/27/bookmarking-threads-on-an-smf-board/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

