<?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>Brian Ortiz &#187; PHP</title>
	<atom:link href="http://blog.ortz.org/category/programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ortz.org</link>
	<description>The blog of Brian Ortiz aka Ortzinator, developer, artist, and the nicest guy you know.</description>
	<lastBuildDate>Sat, 27 Mar 2010 16:58:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making HTML Purifier Work With CodeIgniter</title>
		<link>http://blog.ortz.org/2008/12/30/making-html-purifier-work-with-codeigniter/</link>
		<comments>http://blog.ortz.org/2008/12/30/making-html-purifier-work-with-codeigniter/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 02:34:42 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[HTML Purifier]]></category>

		<guid isPermaLink="false">http://blog.ortz.org/?p=191</guid>
		<description><![CDATA[There&#8217;s a post here about getting it to work, but it&#8217;s old. Since then, the include statements for HTML Purifier were moved to their own file. In a normal script you would include the HTMLPurifier.includes.php file, but this isn&#8217;t in line with how CodeIgniter loads libraries, so it requires some hacking to get working.

 Download [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a post <a href="http://mindloop.be/htmlpurifier-and-the-codeigniter-framework/">here</a> about getting it to work, but it&#8217;s old. Since then, the include statements for <a href="http://htmlpurifier.org/">HTML Purifier</a> were moved to their own file. In a normal script you would include the HTMLPurifier.includes.php file, but this isn&#8217;t in line with how CodeIgniter <a href="http://codeigniter.com/user_guide/general/creating_libraries.html">loads libraries</a>, so it requires some hacking to get working.</p>
<ol>
<li> <a href="http://htmlpurifier.org/download.html">Download</a> HTML Purifier and put the contents of the library folder into your codeigniter /system/application/libraries folder.</li>
<li>Open HTMLPurifier.includes.php and change

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'HTMLPurifier.php'</span><span style="color: #339933;">;</span></pre></div></div>

<p> to</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//require 'HTMLPurifier.php';</span></pre></div></div>

</li>
<li>Open HTMLPurifier.php and add this just under &lt;?php

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HTMLPurifier.includes.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ol>
<p>And that&#8217;s all! Load with</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">library</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HTMLPurifier'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a href="http://htmlpurifier.org">HTML Purifier</a></p>
<p><a href="http://htmlpurifier.org/docs.html">HTML Purifier Docs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ortz.org/2008/12/30/making-html-purifier-work-with-codeigniter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TFH Recode</title>
		<link>http://blog.ortz.org/2008/04/14/tfh-recode/</link>
		<comments>http://blog.ortz.org/2008/04/14/tfh-recode/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 16:43:28 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[Flaming Head]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[the flaming head]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://blog.ortz.org/?p=63</guid>
		<description><![CDATA[Been a while since my last post&#8230; Seems like I can never think of anything to blog about. TFH is The Flaming Head, in case you&#8217;re confused.
I&#8217;m currently in the process of rewriting my entire site using the CodeIgniter framework. Not counting my blog and the forums, that is. Actually, I&#8217;m not sure if I [...]]]></description>
			<content:encoded><![CDATA[<p>Been a while since my last post&#8230; Seems like I can never think of anything to blog about. TFH is The Flaming Head, in case you&#8217;re confused.</p>
<p>I&#8217;m currently in the process of rewriting my entire site using the <a href="http://codeigniter.com/" target="_blank">CodeIgniter </a>framework. Not counting my blog and the forums, that is. Actually, I&#8217;m not sure if I want to keep the forums up. Nobody uses them, and frankly there&#8217;s no reason anyone would want to. And now that I think about it, some sort out shoutbox would probably work just as well. I&#8217;ll have to think about it. I&#8217;d appreciate any suggestions too.</p>
<p>CodeIgniter has been really fun to work with. This is my first experience with a web framework (apart from Ruby on Rails, which didn&#8217;t go so well&#8230; something about &#8220;convention over configuration&#8221; seems a bit communist) and MVC is really awesome. For the first time, I have a feeling like I really know what I&#8217;m doing and I&#8217;m not just a noob anymore. I think it might be because MVC was sort of an epiphany for me as a programmer.</p>
<p>I&#8217;ve decided to be more proactive with learning PHP; trying to learn the sort of things that didn&#8217;t really interest/concern me when I was just doing it for fun. Design patterns, for instance. I want to eventually get ZCE (Zend Certified Engineer). Which means I may end up starting on my own framework in the near future. I want to start doing doing freelance online. My biggest obstacle right now is a lack of real experience and, unfortunately, confidence.</p>
<p>As far as non-web programming is concerned, I&#8217;ve recently become interested in GUIs, both designing them and implementing them. Usability issues have always interested me because psychology has always interested me as well, and the two seem to go hand-in-hand. I mentioned before that I wanted to mess around with WPF a bit, which I still haven&#8217;t gotten around to, unfortunately.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ortz.org/2008/04/14/tfh-recode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PunBB Simple API</title>
		<link>http://blog.ortz.org/2007/12/29/punbb-simple-api/</link>
		<comments>http://blog.ortz.org/2007/12/29/punbb-simple-api/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 18:26:38 +0000</pubDate>
		<dc:creator>Ortzinator</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[punbb]]></category>

		<guid isPermaLink="false">http://blog.ortz.org/2007/12/29/punbb-simple-api/</guid>
		<description><![CDATA[Integrating PunBB with other scripts is something that has always been a major pain for me. So, when I found this I thought I would share it.
PunSAPI allows you to do everything related to PunBB that you could do just by including common.php, like checking the cookie to determine if the user is logged in, [...]]]></description>
			<content:encoded><![CDATA[<p>Integrating <a href="http://punbb.org/" target="_blank">PunBB</a> with other scripts is something that has always been a major pain for me. So, when I found this I thought I would share it.</p>
<p>PunSAPI allows you to do everything related to PunBB that you could do just by including common.php, like checking the cookie to determine if the user is logged in, except it&#8217;s Object Oriented and it doesn&#8217;t interfere with other scripts. For instance, lately I&#8217;ve been using <a href="http://codeigniter.com/" target="_blank">CodeIgniter</a>, which, as most full-featured PHP apps do, has a <code>redirect</code> function. If you simply included common.php into you app, you get a PHP error about the function already being declared. PunSAPI avoids problems like this.</p>
<p><a href="http://punbb.org/forums/viewtopic.php?id=15854" target="_blank">http://punbb.org/forums/viewtopic.php?id=15854 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ortz.org/2007/12/29/punbb-simple-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
