<?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>Development, Software, Hardware and more</description>
	<lastBuildDate>Tue, 14 May 2013 14:31:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<!--Theme by MyThemeShop.com-->
		<item>
		<title>PHP $_COOKIE variable empty</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-_cookie-variable-empty/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-_cookie-variable-empty/#comments</comments>
		<pubDate>Wed, 07 Nov 2012 11:30:19 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[$_COOKIE]]></category>
		<category><![CDATA[$_COOKIE empty]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache mod security]]></category>
		<category><![CDATA[Cannot save Cookies in PHP]]></category>
		<category><![CDATA[Cookie Attacks]]></category>
		<category><![CDATA[Cookies don't save]]></category>
		<category><![CDATA[Cookies Empty]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP cookies don't work]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=447</guid>
		<description><![CDATA[The PHP $_COOKIE variable is a reserved variable and Array in PHP which contains cookies in the browser stored by PHP, Javascript and other languages. If for any reason you are using PHP setcookie() or Javascript document.cookie to set cookies and the PHP $_COOKIE variable remains empty it might actually be a server configuration that [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-_cookie-variable-empty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Enable GD image library</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-enable-gd-image-library/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-enable-gd-image-library/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 18:59:56 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Enable PHP GD]]></category>
		<category><![CDATA[Enable the PHP GD image library]]></category>
		<category><![CDATA[GD]]></category>
		<category><![CDATA[GD image library]]></category>
		<category><![CDATA[GD Library]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP GD]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=413</guid>
		<description><![CDATA[Many features that you see on the web require that the GD library be enabled on your PHP server. You may need the GD library if you are attempting to display CAPTCHA graphics somewhere on your site. In a default PHP installation, the GD library should already be enabled. The following How To explains how [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-enable-gd-image-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Copy image from remote server to local server</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-copy-image-from-remote-server-to-local-server/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-copy-image-from-remote-server-to-local-server/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 09:52:26 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Copy file from remote server]]></category>
		<category><![CDATA[Copy from remote to local]]></category>
		<category><![CDATA[Copy image]]></category>
		<category><![CDATA[Copy image from remote server]]></category>
		<category><![CDATA[Copy with PHP]]></category>
		<category><![CDATA[fclose]]></category>
		<category><![CDATA[file_get_contents]]></category>
		<category><![CDATA[fopen]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP Copy]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=411</guid>
		<description><![CDATA[You might want to copy an image (or any other file) with PHP from a remote location to your local server and store it in a specific location. You can use the PHP file_get_contents() function to achieve this. Here is a code sample: $remoteimage = "http://domain.com/path/to/remote/image.jpg"; $localimage = "/home/domain/httpdocs/path/to/my/image.jpg"; if ($content = file_get_contents($remoteimage)) { if [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-copy-image-from-remote-server-to-local-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: HTML to PDF</title>
		<link>http://www.lost-in-code.com/programming/php-code/php-html-to-pdf/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/php-html-to-pdf/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 14:19:02 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Convert HTML to PDF]]></category>
		<category><![CDATA[Create PDF files]]></category>
		<category><![CDATA[DomPDF]]></category>
		<category><![CDATA[Generate PDF files with PHP]]></category>
		<category><![CDATA[HTML to PDF]]></category>
		<category><![CDATA[PDF Library]]></category>
		<category><![CDATA[PHP DomPDF]]></category>
		<category><![CDATA[PHP HTML]]></category>
		<category><![CDATA[PHP HTML to PDF]]></category>
		<category><![CDATA[PHP PDF]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=399</guid>
		<description><![CDATA[I&#8217;ve pretty much tried all the PDF libraries out there for saving HTML to PDF appropriately and correctly using PHP and came to a conclusion (continue reading). The one that worked the fastest and most efficiently was the HTML to PDF class on PHP Classes but eventually this EasySW remote HTML to PDF service in [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/php-html-to-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>DomPDF images not working</title>
		<link>http://www.lost-in-code.com/programming/php-code/dompdf-images-not-working/</link>
		<comments>http://www.lost-in-code.com/programming/php-code/dompdf-images-not-working/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 19:41:44 +0000</pubDate>
		<dc:creator>Antonie Potgieter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[DomPDF]]></category>
		<category><![CDATA[DomPDF images broken]]></category>
		<category><![CDATA[DomPDF issue with images]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[Images not working]]></category>
		<category><![CDATA[PDF images not displaying]]></category>
		<category><![CDATA[PDF images not working]]></category>

		<guid isPermaLink="false">http://www.lost-in-code.com/?p=375</guid>
		<description><![CDATA[Are you having problems with images not displaying in DomPDF generated PDFs? The probable reason is because you&#8217;re linking your images in HTML with a path from the script or with an absolute URL like this: &#60;img src="images/myimage.jpg" /&#62; OR &#60;img src="http://domain.com/images/myimage.jpg" /&#62; The solution is to change the image SRC to the absolute path [...]]]></description>
		<wfw:commentRss>http://www.lost-in-code.com/programming/php-code/dompdf-images-not-working/feed/</wfw:commentRss>
		<slash:comments>3</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>9</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>20</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>
	</channel>
</rss>
