<?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>groogsblog &#187; PHP</title>
	<atom:link href="http://gregmaclellan.com/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregmaclellan.com/blog</link>
	<description>stuff about anything</description>
	<lastBuildDate>Wed, 26 Oct 2011 14:04:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>PHP mail() logging</title>
		<link>http://gregmaclellan.com/blog/php-mail-logging/</link>
		<comments>http://gregmaclellan.com/blog/php-mail-logging/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 17:33:24 +0000</pubDate>
		<dc:creator>groogs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://gregmaclellan.com/blog/php-mail-logging/</guid>
		<description><![CDATA[I&#8217;ve posted my php sendmail wrapper before, but I just noticed that Ilia Alshanetsky has written a php mail logging patch that essentially does the same thing, but from within PHP itself. This is nice because it can log the full path of the file and line where mail() was called, whereas my script can [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve posted my <a href="http://gregmaclellan.com/blog/sendmail-wrapper/">php sendmail wrapper</a> before, but I just noticed that <a href="http://ilia.ws/">Ilia Alshanetsky</a> has written a <a href="http://ilia.ws/archives/149-mail-logging-for-PHP.html">php mail logging patch</a> that essentially does the same thing, but from within PHP itself. This is nice because it can log the full path of the file and line where mail() was called, whereas my script can only log as much info as PHP passes to sendmail (which isn&#8217;t very much) and what it can get from the environment. The downside is since it&#8217;s a patch, it requires recompiling &#8211; my script can be dropped into any installation (PHP4/5, and maybe even 3) and just requires a simple php.ini change.</p>
<p>I should also point out that if you&#8217;re using this, you should be sure that you don&#8217;t &#8220;whitelist&#8221; localhost in your mail server, or otherwise people can just connect to your SMTP server locally, and send mail without requiring a username or password. If they use SMTP you can&#8217;t see what script or virtual host sent the mail either way, but at least if you require authentication you can see what account is being used if it becomes an issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregmaclellan.com/blog/php-mail-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeIgniter</title>
		<link>http://gregmaclellan.com/blog/codeigniter/</link>
		<comments>http://gregmaclellan.com/blog/codeigniter/#comments</comments>
		<pubDate>Wed, 19 Apr 2006 01:13:53 +0000</pubDate>
		<dc:creator>groogs</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://gregmaclellan.com/blog/codeigniter/</guid>
		<description><![CDATA[I&#8217;ve been playing with a sweet PHP framework called CodeIgniter, and I have to say: I love it. It uses the MVC pattern, which I&#8217;ve never much cared for, but does it in a nice way: by staying out of the way. The models are incredibly basic, and really, you don&#8217;t even need them. The [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with a sweet PHP framework called <a title="CodeIgniter - kick-ass PHP framework" href="http://www.codeigniter.com">CodeIgniter</a>, and I have to say: I love it. It uses the MVC pattern, which I&#8217;ve never much cared for, but does it in a nice way: by staying out of the way. The models are incredibly basic, and really, you don&#8217;t even need them. The views are PHP templates done the way PHP templates should be done; with PHP.</p>
<p>Something many frameworks miss: the documentation is amazing. There is a great tutorial video on their website, and after watching it, many people say they&#8217;re hooked. The user guide is even better: well laid out, and it even has a slick interface and look that makes it pleasurful to use. What&#8217;s missing is pure API documentation, but there is a reference (that I now have printed and posted just above my desk) and most of the calls are outlined in the manual.</p>
<p>Unlike many other frameworks, it doesn&#8217;t impose any strict methods of doing anything. You have a controller that is a class with a bunch of functions. There are &#8216;helpers&#8217;, &#8216;libraries&#8217;, &#8216;plugins&#8217;, that all have a common way of loading ( <em>$this->load->library(&#8216;session&#8217;);</em> for example). These can be core libraries, or application-specific (installed in the application/ folder). The directory layout is very intuitive, and it can all go underneath an HTTP root folder (not requiring certain files inside/outside of a web-accessable folder &#8212; double plus for people using shared hosting with open_basedir restrictions).</p>
<p>I started experimenting with it for the second version of web interface I&#8217;m writing, and I actually decided to port another application I had 75% done to it. It&#8217;s still in-progress as I write some user authentication routines, and I decided to write a <a href="http://www.codeigniter.com/forums/viewthread/367/">&#8220;SuperModel&#8221; class</a> (yeah, kind of dumb name) that builds forms and validates them &#8211; because I hate manually building forms.</p>
<p>If you&#8217;re a PHP developer, I highly recommend checking this framework out. It&#8217;s only been around publically for a couple months and has been aparently downloaded over 5000 times, and has a growing and active community in the forums.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregmaclellan.com/blog/codeigniter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend Framework</title>
		<link>http://gregmaclellan.com/blog/zend-framework/</link>
		<comments>http://gregmaclellan.com/blog/zend-framework/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 00:25:09 +0000</pubDate>
		<dc:creator>groogs</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://gregmaclellan.com/blog/zend-framework/</guid>
		<description><![CDATA[The much-anticipated Zend Framework was released a couple of days ago, and I finally got around to looking at it today. I really wasn&#8217;t impressed much. It&#8217;s really not much more than PEAR, with a sloppy MVC framework tacked on. I certainly don&#8217;t think it&#8217;s not a useful library: the Zend_InputFilter class looks very handy, [...]]]></description>
			<content:encoded><![CDATA[<p>The much-anticipated Zend Framework was released a couple of days ago, and I finally got around to looking at it today. I really wasn&#8217;t impressed much.</p>
<p>It&#8217;s really not much more than <a href="http://pear.php.net/">PEAR</a>, with a <a href="http://work.alexyoung.org/archives/127/a-look-at-the-zend-framework">sloppy MVC framework</a> tacked on. I certainly don&#8217;t think it&#8217;s not a useful library: the <a href="http://framework.zend.com/manual/zend.inputfilter.html">Zend_InputFilter class</a> looks very handy, and the <a href="http://framework.zend.com/manual/zend.db.html">Zend_Db </a>stuff is an interesting implementation (though, I&#8217;m not sure if I&#8217;ll be switching away from <a href="http://adodb.sourceforge.net/">ADOdb</a> anytime soon).<br />
I&#8217;m still not currently using a formal MVC framework (I haven&#8217;t yet found one I really like &#8211; though I do implement something similar the view-controller part without object oriented code), and by the looks of things, I won&#8217;t be building any applications using just the Zend Framework, either.</p>
<p>Okay, so it&#8217;s written by the people behind PHP. Is this really <a href="http://farm.tucows.com/blog/_archives/2006/3/6/1799893.html">the best benefit it has</a> over any other framework?  I certainly <a href="http://www.johndavidanderson.net/blog/?p=56">don&#8217;t seem to be alone</a> in thinking this way.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregmaclellan.com/blog/zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

