

<?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>kieranbarnes &#187; PHP</title>
	<atom:link href="http://bloke.org/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloke.org</link>
	<description>Independent PHP, WordPress &#38; CubeCart Programmer</description>
	<lastBuildDate>Fri, 18 May 2012 10:20:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Adding .html suffix to WordPress Rewrites</title>
		<link>http://bloke.org/php/adding-html-suffix-to-wordpress-rewrites/</link>
		<comments>http://bloke.org/php/adding-html-suffix-to-wordpress-rewrites/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 19:47:41 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=4009</guid>
		<description><![CDATA[Here's a quick way to give your WordPress install a static look. Add this code to your functions.php There are two functions at work here Add .html suffix to permalinks Remove trailing slash from permalinks Just so you know, the .html can be anything you like in reality. Finally, update your permalink settings to match. [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/snippet-formatting-currency-string/' rel='bookmark' title='[Snippet] Formatting a currency string'>[Snippet] Formatting a currency string</a> <small>The Shopp ecommerce plugin for WordPress has a little annoying...</small></li>
<li><a href='http://bloke.org/php/truncate-string-nearest-word/' rel='bookmark' title='Truncate a string to the nearest word'>Truncate a string to the nearest word</a> <small>Truncating a string in PHP is easy, substr($start,$finish), but its...</small></li>
<li><a href='http://bloke.org/php/snippet-adding-your-custom-taxonomy-to-postpage-list-in-wordpress/' rel='bookmark' title='[Snippet] Adding your custom taxonomy to post/page list in WordPress'>[Snippet] Adding your custom taxonomy to post/page list in WordPress</a> <small>Custom Taxonomies are amazing for organising your post data. Here's...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/adding-html-suffix-to-wordpress-rewrites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Snippet] Adding your custom taxonomy to post/page list in WordPress</title>
		<link>http://bloke.org/php/snippet-adding-your-custom-taxonomy-to-postpage-list-in-wordpress/</link>
		<comments>http://bloke.org/php/snippet-adding-your-custom-taxonomy-to-postpage-list-in-wordpress/#comments</comments>
		<pubDate>Mon, 05 Mar 2012 14:44:16 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3987</guid>
		<description><![CDATA[Custom Taxonomies are amazing for organising your post data. Here's a simple way of showing your custom taxonomies on the post/page list in wp-admin. In the image below you can see we are now showing the custom taxo Brand in the post list. &#160; Here's how I did it Firstly, create your extra column. You [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/how-to-list-a-custom-post-types-taxonomies-and-terms/' rel='bookmark' title='How To List A Custom Post Type&#8217;s Taxonomies And Terms'>How To List A Custom Post Type&#8217;s Taxonomies And Terms</a> <small>Jennifer M. Dodd has published a brilliant article on listing...</small></li>
<li><a href='http://bloke.org/wordpress/custom-post-type-indexarchives/' rel='bookmark' title='Custom Post Type Index/Archives'>Custom Post Type Index/Archives</a> <small>Custom Post Types have come a long way recently. Custom...</small></li>
<li><a href='http://bloke.org/wordpress/redirecting-a-custom-post-type/' rel='bookmark' title='Redirecting a custom post type'>Redirecting a custom post type</a> <small>Ever had to rename a custom post type? Pain in...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/snippet-adding-your-custom-taxonomy-to-postpage-list-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic Photo Blogging with WordPress</title>
		<link>http://bloke.org/php/automatic-photo-blogging-with-wordpress/</link>
		<comments>http://bloke.org/php/automatic-photo-blogging-with-wordpress/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 23:54:16 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Settings Media]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3984</guid>
		<description><![CDATA[My latest WordPress challenge was to automate a photo blog site. The photo blog post content would just consist of a title and a featured image. No content. As per normal photo blog style sites. This solution takes an image at random from a folder and posts it in WordPress. It relies on a healthy [...]
No related posts.]]></description>
		<wfw:commentRss>http://bloke.org/php/automatic-photo-blogging-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Side PNG Optimisation with TimThumb</title>
		<link>http://bloke.org/php/server-side-png-optimisation-with-timthumb/</link>
		<comments>http://bloke.org/php/server-side-png-optimisation-with-timthumb/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 14:23:03 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3968</guid>
		<description><![CDATA[A little known feature of TimThumb is that is supports server side PNG optimisation. Using the OptiPNG program (Available for Linux and Windows) TimThumb can losslessly compress PNGs on the fly. Quick tests showed an original clients PNG came in at  671Kb, OptiPNG compressed that with no visible difference to 580Kb and nominal server load. So lets [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/caching-timthumb-images-in-memory/' rel='bookmark' title='Caching TimThumb images in memory'>Caching TimThumb images in memory</a> <small>TimThumb, properly configured &amp; secured is a very useful tool...</small></li>
<li><a href='http://bloke.org/php/timthumb-upscale-fix-stop-timthumb-from-upscaling-small-images/' rel='bookmark' title='TimThumb upscale fix: stop timthumb from upscaling small images'>TimThumb upscale fix: stop timthumb from upscaling small images</a> <small> Ever found that TimThumb is upscaling your small images and...</small></li>
<li><a href='http://bloke.org/voip/change-public-numbers-displayed-interface/' rel='bookmark' title='How Do I Change The Way Public Numbers Are Displayed In Interface?'>How Do I Change The Way Public Numbers Are Displayed In Interface?</a> <small>When using the 4PSA VoIPNow interface there was nothing more...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/server-side-png-optimisation-with-timthumb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing all comment functionality in WordPress</title>
		<link>http://bloke.org/php/removing-all-comment-functionality-in-wordpress/</link>
		<comments>http://bloke.org/php/removing-all-comment-functionality-in-wordpress/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 15:46:14 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Allow Comments]]></category>
		<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3950</guid>
		<description><![CDATA[As more and more people adopt WordPress as a CMS, more and more of the original blog functionality is becoming redundant. Comments are one of. Here is how to conclusively remove all comment functions in WordPress It uses two functions, the first one removes comment support from posts and pages. This means you dont have to uncheck [...]
Related posts:<ol>
<li><a href='http://bloke.org/wordpress/removing-l10n-js-in-wordpress/' rel='bookmark' title='Removing l10n.js in WordPress'>Removing l10n.js in WordPress</a> <small>l10nn.js is a JavaScript library that enables localization through native...</small></li>
<li><a href='http://bloke.org/wordpress/wordpress-function-remove_menu_page/' rel='bookmark' title='WordPress function remove_menu_page'>WordPress function remove_menu_page</a> <small>WordPress is now being used more and more for a...</small></li>
<li><a href='http://bloke.org/php/change-howdy-text-in-wordpress-admin/' rel='bookmark' title='Change &#8220;Howdy&#8221; text in WordPress admin'>Change &#8220;Howdy&#8221; text in WordPress admin</a> <small>The "Howdy admin" text can some times come across a...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/removing-all-comment-functionality-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caching TimThumb images in memory</title>
		<link>http://bloke.org/php/caching-timthumb-images-in-memory/</link>
		<comments>http://bloke.org/php/caching-timthumb-images-in-memory/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 02:46:34 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3947</guid>
		<description><![CDATA[TimThumb, properly configured &#38; secured is a very useful tool for image manipulation. Amidst all it's old security flaws, the new version is pretty secure. Sometimes it can be pretty slow though. By default it only caches images for 24 hours. Probably not long enough if you are just creating static thumbnails of larger images [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/timthumb-upscale-fix-stop-timthumb-from-upscaling-small-images/' rel='bookmark' title='TimThumb upscale fix: stop timthumb from upscaling small images'>TimThumb upscale fix: stop timthumb from upscaling small images</a> <small> Ever found that TimThumb is upscaling your small images and...</small></li>
<li><a href='http://bloke.org/apache/moving-mod_pagespeeds-file-based-cache-into-ram/' rel='bookmark' title='Moving mod_pagespeed&#8217;s file-based cache into RAM'>Moving mod_pagespeed&#8217;s file-based cache into RAM</a> <small>Google's mod_pagespeed does a great job at optimising web resources...</small></li>
<li><a href='http://bloke.org/linux/cpanel-mysql-tuning/' rel='bookmark' title='cPanel MySQL Tuning'>cPanel MySQL Tuning</a> <small>The default configuration for MySQL provided by cPanel is pretty...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/caching-timthumb-images-in-memory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Opengraph and Microdata Generation without a plugin</title>
		<link>http://bloke.org/php/wordpress-opengraph-and-microdata-generation-without-a-plugin/</link>
		<comments>http://bloke.org/php/wordpress-opengraph-and-microdata-generation-without-a-plugin/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 20:09:51 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[microdata]]></category>
		<category><![CDATA[opengraph]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3938</guid>
		<description><![CDATA[Its really useful to have Opengraph (Facebook) and Microdata (Twitter) information in your blog header. The Facebook Opengraph and Schema.org microdata lets you optimize your blog much more better and helps search engines to index your website better to show rich snippet. It also lets Facebook and Twitter users to share your blog with proper title, description, [...]
Related posts:<ol>
<li><a href='http://bloke.org/wordpress/removing-wordpress-plugin-references/' rel='bookmark' title='Removing WordPress plugin references'>Removing WordPress plugin references</a> <small>I'd like remove all references WordPress plugins put into my...</small></li>
<li><a href='http://bloke.org/php/icalendar-generation/' rel='bookmark' title='iCalendar Generation'>iCalendar Generation</a> <small>One of my clients requested that the CRM applicationI wrote...</small></li>
<li><a href='http://bloke.org/php/captcha-generation/' rel='bookmark' title='CAPTCHA Image Generation'>CAPTCHA Image Generation</a> <small>I couldn't find a very good CAPTCHA generation script in...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/wordpress-opengraph-and-microdata-generation-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Snippet] Matching hash tags in Twitter content</title>
		<link>http://bloke.org/php/snippet-matching-hash-tags-in-twitter-content/</link>
		<comments>http://bloke.org/php/snippet-matching-hash-tags-in-twitter-content/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 15:00:20 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3926</guid>
		<description><![CDATA[Here's a super simple way of matching hash tag content in a tweet. Perhaps you want to store hash tags as WordPress tags? Or simply transform how they are displayed? Where $data-&#62;text is your tweet string. Easy. Related posts: Using the Twitter XML Feed in PHP Parsing the Twitter XML feed for a user in [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/using-the-twitter-xml-feed-in-php/' rel='bookmark' title='Using the Twitter XML Feed in PHP'>Using the Twitter XML Feed in PHP</a> <small>Parsing the Twitter XML feed for a user in PHP...</small></li>
<li><a href='http://bloke.org/php/snippet-convert-twitter-date-to-mysql-date/' rel='bookmark' title='[Snippet] Convert Twitter Date to MySQL Date'>[Snippet] Convert Twitter Date to MySQL Date</a> <small>If you are pulling tweets from Twitter's Firehose streaming API...</small></li>
<li><a href='http://bloke.org/php/snippet-formatting-the-date-in-twitter-xml-feed/' rel='bookmark' title='[Snippet] Formatting the date in twitter XML feed'>[Snippet] Formatting the date in twitter XML feed</a> <small>The date in the Twitter XML feed is daft and...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/snippet-matching-hash-tags-in-twitter-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Snippet] Convert Twitter Date to MySQL Date</title>
		<link>http://bloke.org/php/snippet-convert-twitter-date-to-mysql-date/</link>
		<comments>http://bloke.org/php/snippet-convert-twitter-date-to-mysql-date/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 02:55:19 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[Twitter Firehose]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3893</guid>
		<description><![CDATA[If you are pulling tweets from Twitter's Firehose streaming API or the search.atom/search.json APIs, you will be getting Twitter's really annoying non-standard date format. To convert their date format into MySQL's date format for storing in a date column, try this; Where $tweet-&#62;updated is your Twitter date (This example uses the search.atom &#38; SimpleXML). Or, do [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/snippet-formatting-the-date-in-twitter-xml-feed/' rel='bookmark' title='[Snippet] Formatting the date in twitter XML feed'>[Snippet] Formatting the date in twitter XML feed</a> <small>The date in the Twitter XML feed is daft and...</small></li>
<li><a href='http://bloke.org/php/using-the-twitter-xml-feed-in-php/' rel='bookmark' title='Using the Twitter XML Feed in PHP'>Using the Twitter XML Feed in PHP</a> <small>Parsing the Twitter XML feed for a user in PHP...</small></li>
<li><a href='http://bloke.org/php/snippet-simplified-ukus-date-conversion/' rel='bookmark' title='[Snippet] Simplified UK/US Date Conversion'>[Snippet] Simplified UK/US Date Conversion</a> <small>One of my major annoyances in PHP &amp; MySQL world...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/snippet-convert-twitter-date-to-mysql-date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Snippet] Setting the timezone for PHP 5.3</title>
		<link>http://bloke.org/php/snippet-setting-the-timezone-for-php-5-3/</link>
		<comments>http://bloke.org/php/snippet-setting-the-timezone-for-php-5-3/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 14:43:53 +0000</pubDate>
		<dc:creator>kieran</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Europe]]></category>

		<guid isPermaLink="false">http://bloke.org/?p=3744</guid>
		<description><![CDATA[PHP 5.3 requires a time zone to be set if you do any kind of date processing. Simply set this in your php.ini Or if you are on a shared host, you can do it in a .htaccess If all else fails, put the following in your code Related posts: [Snippet] Formatting the date in [...]
Related posts:<ol>
<li><a href='http://bloke.org/php/snippet-formatting-the-date-in-twitter-xml-feed/' rel='bookmark' title='[Snippet] Formatting the date in twitter XML feed'>[Snippet] Formatting the date in twitter XML feed</a> <small>The date in the Twitter XML feed is daft and...</small></li>
<li><a href='http://bloke.org/php/snippet-simplified-ukus-date-conversion/' rel='bookmark' title='[Snippet] Simplified UK/US Date Conversion'>[Snippet] Simplified UK/US Date Conversion</a> <small>One of my major annoyances in PHP &amp; MySQL world...</small></li>
<li><a href='http://bloke.org/php/snippet-allow-php-in-smarty-cubecart-5/' rel='bookmark' title='[Snippet] Allow PHP in Smarty (CubeCart 5)'>[Snippet] Allow PHP in Smarty (CubeCart 5)</a> <small>Although it is generally bad practise to put PHP code...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://bloke.org/php/snippet-setting-the-timezone-for-php-5-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

