<?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>Lost-In-Code &#187; PHP</title>
	<atom:link href="http://www.lost-in-code.com/category/programming/php-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lost-in-code.com</link>
	<description>Web Development Resources</description>
	<lastBuildDate>Sun, 18 Jul 2010 22:05:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Turn off error reporting on your production site</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/turn-off-error-reporting-on-your-production-site/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/turn-off-error-reporting-on-your-production-site/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 10:01:39 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[error_reporting]]></category>
		<category><![CDATA[notices]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[warnings]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=129</guid>
		<description><![CDATA[On a production site, you would most likely want to hide all possible PHP errors, warnings and notices from your users for both usability, presentational and security purposes. For development and debugging purposes, you would want to turn on error_reporting and display all error messages so that you can debug your code and ensure that [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/turn-off-error-reporting-on-your-production-site/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Install WordPress via Command Line</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/install-wordpress-via-command-line/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/install-wordpress-via-command-line/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 23:53:32 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=70</guid>
		<description><![CDATA[I wrote a useful article/tutorial over at BloggingRocket which guides you through the process of installing WordPress with Shell Access. Please feel free to check it out and comment.]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/install-wordpress-via-command-line/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CakePHP : Change view file from controller</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-change-view-file-from-controller/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/cakephp-change-view-file-from-controller/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 19:04:57 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[view file]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=66</guid>
		<description><![CDATA[With CakePHP, the controller core automatically detects the file name of the view file which needs to be rendered from a controller action. You might want to reuse an existent view for an action or specify a different file name. For example, if you have a controller named &#8220;Users&#8221; and you execute a controller action [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/cakephp-change-view-file-from-controller/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>WordPress.com Stats Stopped Working</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpresscom-stats-stopped-working/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/wordpresscom-stats-stopped-working/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 22:48:13 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[wordpress.com stats]]></category>
		<category><![CDATA[wp_footer]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=64</guid>
		<description><![CDATA[I recently integrated a blog and documentation base into the Tribulant.com website and noticed after a few days that my WordPress.com stats stopped working completely after switching the theme. I&#8217;ve been puzzled about this for a few days now and managed to figure out that, out of idiocy, I completely forgot to call the wp_footer [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/wordpresscom-stats-stopped-working/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PHP: Increase memory limit</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-increase-memory-limit/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-increase-memory-limit/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 13:40:55 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[dedicated]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[memory_limit]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP Limits]]></category>
		<category><![CDATA[PHP memory limit]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[php_value]]></category>
		<category><![CDATA[Server Limits]]></category>
		<category><![CDATA[shared hosting]]></category>
		<category><![CDATA[Shared Web Hosting]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=59</guid>
		<description><![CDATA[Have you ever received a fatal error on your server similar to the one below when you tried to execute a script? The fatal error shown below, indicates that your PHP configuration has a memory limit set and the script which you are executing is trying to allocate more memory than what is available for [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-increase-memory-limit/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress : Using jQuery library with your plugin or theme</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-using-jquery-library-with-your-plugin-or-theme/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/wordpress-using-jquery-library-with-your-plugin-or-theme/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 23:20:05 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[noconflict]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=57</guid>
		<description><![CDATA[When you develop a WordPress plugin or theme, you might want to make use of the jQuery library included and distributed with the WordPress package. The jQuery library is located inside the &#8220;wp-includes/js/jquery/&#8221; folder. Even though you know what the location of the jQuery library is, I do not recommend that you reference this script [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/wordpress-using-jquery-library-with-your-plugin-or-theme/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WordPress : Translate a Plugin</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-translate-a-plugin/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/wordpress-translate-a-plugin/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 00:32:38 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[localize]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[translate]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=48</guid>
		<description><![CDATA[First off, you have to know that not all WordPress plugins can be translated. The plugin developer(s) had to take the necessary steps such as using the WordPress __() and _e() functions and load_plugin_textdomain() in order to parse the strings/text of the plugin through the localization system. If you have a plugin with the ability [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/wordpress-translate-a-plugin/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>WordPress : Using Javascript libraries with your plugin or theme</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-using-javascript-libraries-with-your-plugin-or-theme/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/wordpress-using-javascript-libraries-with-your-plugin-or-theme/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 15:58:16 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[add javascript]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wp_enqueue_script]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=47</guid>
		<description><![CDATA[When you develop a WordPress plugin or theme, you might want to make use of some of the Javascript libraries distributed with the WordPress package such as Prototype, Scriptaculous and jQuery. Simple enough, they are in the &#8220;wp-includes/js/&#8221; folder, so what more is there to it? Can&#8217;t I just add a SCRIPT tag in the [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/wordpress-using-javascript-libraries-with-your-plugin-or-theme/feed/</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>PHP : Date difference in days</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-date-difference-in-days/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-date-difference-in-days/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 16:13:00 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[datediff]]></category>
		<category><![CDATA[days]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[difference in days]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php date difference]]></category>
		<category><![CDATA[php datediff]]></category>
		<category><![CDATA[subtract]]></category>
		<category><![CDATA[time difference]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=45</guid>
		<description><![CDATA[You might need to calculate the date difference in days using PHP. You can easily calculate the days difference by using something like the code below. The code shown above takes the UNIX timestamp of two dates and subtracts the older date from the newer date to get the number of seconds. Then we simply [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-date-difference-in-days/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>PHP : Array to Object</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-array-to-object/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-array-to-object/#comments</comments>
		<pubDate>Tue, 06 May 2008 23:04:20 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=39</guid>
		<description><![CDATA[I wrote a quick and simple function which allows you to quickly convert arrays to objects. It allows you to change an array like this : $a&#91;&#8216;b&#8217;&#93;; To an object like this : $a -&#62; b; Below is the function. Have fun! &#60;?php function array_to_object&#40;$array = array&#40;&#41;&#41; &#123; &#160; &#160; if &#40;!empty&#40;$array&#41;&#41; &#123; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-array-to-object/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->