<?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/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lost-in-code.com</link>
	<description>Web Development Resources</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:07:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP: URL inside Regex</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-url-inside-regex/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-url-inside-regex/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 11:15:19 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Dynamically put URL in regular expression]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP REGEX]]></category>
		<category><![CDATA[preg_match_all]]></category>
		<category><![CDATA[preg_quote]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[Regular Expression Escaping]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[Special characters in regular expression]]></category>
		<category><![CDATA[URL in regular expression]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=383</guid>
		<description><![CDATA[Using special, regular expression characters in regular expressions require you to escape them in the regular expression pattern. I had an issue with dynamically getting an array of URLs from HREF attribute from links using PHP preg_match_all and then wanted to replace this array of URLs dynamically in a loop again with their Bit.ly links [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-url-inside-regex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Using Really Simple Captcha</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-plugins/wordpress-using-really-simple-captcha/</link>
		<comments>http://www.lost-in-code.com/platforms/wordpress/wordpress-plugins/wordpress-using-really-simple-captcha/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 18:29:42 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[Wordpress Plugins]]></category>
		<category><![CDATA[Captcha Image for WordPress]]></category>
		<category><![CDATA[Captcha Integration]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Really Simple Captcha]]></category>
		<category><![CDATA[Using Really Simple Captcha]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP Captcha]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=309</guid>
		<description><![CDATA[All WordPress plugin developers, you can integrate a security captcha image into your own WordPress plugin using the Really Simple Captcha plugin. It is a plugin in itself but it serves as an API and doesn&#8217;t have any purpose on its own without other plugins using it. This is an example of how to use [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/platforms/wordpress/wordpress-plugins/wordpress-using-really-simple-captcha/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<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>10</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>19</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>30</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>33</slash:comments>
		</item>
		<item>
		<title>PHP : Strip filename from a URL</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-strip-filename-from-a-url/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-strip-filename-from-a-url/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 06:36:44 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[filename]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[strip]]></category>
		<category><![CDATA[uri]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=34</guid>
		<description><![CDATA[Using PHP, you might need to strip the path from a URL, leaving behind just the filename at the end of the URL. You can achieve this with a regular expression pattern of course, but I have a much simpler solution. See the example code below. $url = &#34;http://www.domain.com/path/to/file/filename.php&#34;; $filename = basename&#40;$url&#41;; echo $filename; //filename.php [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-strip-filename-from-a-url/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>CakePHP : Form Radio Default Checked Value</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-form-radio-default-checked-value/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/cakephp-form-radio-default-checked-value/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 12:31:17 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[formhelper]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[radio buttons]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=30</guid>
		<description><![CDATA[With the CakePHP FormHelper, you can output a set or a list of radio button widgets. Usage &#60;?= $form -&#62; radio&#40;$field, $options, $attributes&#41;; ?&#62; Example &#60;?= $form -&#62; radio&#40;&#8216;Model.field&#8217;, array&#40;&#8216;Option1&#8242;, &#8216;Option2&#8242;, &#8216;Option3&#8242;&#41;, array&#40;&#8216;default&#8217; =&#62; &#8216;option2&#8242;&#41;&#41;; ?&#62; In the line of code above, you&#8217;ll notice the default attribute value. This specifies the value of the radio [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/cakephp-form-radio-default-checked-value/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>CakePHP Crontab</title>
		<link>http://www.lost-in-code.com/programming/php-code/cakephp-crontab/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/cakephp-crontab/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 22:53:48 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[CakePHP Cron Schedule]]></category>
		<category><![CDATA[cakephp cronjob]]></category>
		<category><![CDATA[cakephp schedules]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cronjobs with cakephp]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[crontab cakephp]]></category>
		<category><![CDATA[dispatcher]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[schedule]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/2008/02/28/cakephp-crontab/</guid>
		<description><![CDATA[Due to the way that CakePHP rewrites URL requests with its router, it might seem confusing to execute a Crontab to run a controller action. I will show you how to set up a cron dispatcher so that you can execute all your different controller action schedules on a single file and pass the controller [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/cakephp-crontab/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

