<?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>UDFI, LLC &#187; php</title>
	<atom:link href="http://www.udfi.biz/category/technology/php-technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.udfi.biz</link>
	<description>High Tech on the East Coast</description>
	<lastBuildDate>Tue, 23 Aug 2011 18:11:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>my love affair with rsync</title>
		<link>http://www.udfi.biz/2010/02/my-love-affair-with-rsync/</link>
		<comments>http://www.udfi.biz/2010/02/my-love-affair-with-rsync/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 20:53:01 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[linux admin]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=211</guid>
		<description><![CDATA[rsync &#8211;progress -r &#8211;exclude-from=./rsync_exclude.txt &#8211;delete -e ssh -p ./ user@host:path - r= recursive -exclude-from = exclude files txt file &#8211;delete = deletes files that aren&#8217;t on target -e = specify shell to use , ssh in this case -p = &#8230; <a href="http://www.udfi.biz/2010/02/my-love-affair-with-rsync/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>rsync &#8211;progress -r &#8211;exclude-from=./rsync_exclude.txt &#8211;delete -e ssh -p ./ user@host:path</p>
<p>- r= recursive</p>
<p>-exclude-from = exclude files txt file</p>
<p>&#8211;delete = deletes files that aren&#8217;t on target</p>
<p>-e = specify shell to use , ssh in this case</p>
<p>-p = preserve the permissions</p>
<p>a really easy way to deploy code to your web servers.  my rsync_exclude.txt usually includes my eclipse settings files and .svn</p>
<p>a really easy shell script would be to have this loop through your production servers to do an update.</p>
<p>try it out tell me what you think</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2010/02/my-love-affair-with-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on switching from symfony to codeigniter</title>
		<link>http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/</link>
		<comments>http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 16:38:06 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=199</guid>
		<description><![CDATA[So i&#8217;ve been a long time fan of symfony, and have used it quite regularly on large projects.  It&#8217;s been pretty good and has helped me developed sites rather quickly.  However, i&#8217;ve felt that the framework has been getting too &#8230; <a href="http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So i&#8217;ve been a long time fan of symfony, and have used it quite regularly on large projects.  It&#8217;s been pretty good and has helped me developed sites rather quickly.  However, i&#8217;ve felt that the framework has been getting too large and effecting performance, and recently they&#8217;ve also decided to switch to the Doctrine ORM, which i&#8217;ve found very unreliable for large data sets. For these reasons i&#8217;ve decided to switch to the codeigniter framework on my latest project and i&#8217;ve been quite happy with the results.</p>
<p>First, the code igniter framework is a lot less code than symfony (and much easier to install).   The result it seems, is a faster snappier website.  Additionally, digging through the code igniter framework to see what&#8217;s going on, is 10x easier than going through the symfony framework base code.  I know some ppl will argue that the caching on symfony should make it just as fast, but honestly, I dont see it.  I&#8217;ve tried many different caching strategies that they outline online and in the forums, but code igniter&#8217;s simple view template strategy seems much faster.</p>
<p>Code igniter currently doesn&#8217;t come with a default ORM.  Because of the lack of an ORM, pulling data from the database is much faster compared to Doctrine&#8217;s access.  I was running a 4million record database that linked to a 2 million record database.  Doctrine pretty much puked on this.  I haven&#8217;t seen an issue yet with this with the Code igniter database class.  I think the many abstraction layers that Doctrine has results in unnecessary classes which leads to slower results access and increases the chances of memory leaks.  Say what you may, but these are the results that i&#8217;ve found for my website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2010/01/thoughts-on-switching-from-symfony-to-codeigniter/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>PHP goto</title>
		<link>http://www.udfi.biz/2009/08/php-goto/</link>
		<comments>http://www.udfi.biz/2009/08/php-goto/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 11:13:20 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=176</guid>
		<description><![CDATA[http://bugs.php.net/bug.php?id=48669 Saw this on hacker news and just thought it was hilarious.  see last comment.]]></description>
			<content:encoded><![CDATA[<p><a href="http://bugs.php.net/bug.php?id=48669">http://bugs.php.net/bug.php?id=48669</a></p>
<p>Saw this on hacker news and just thought it was hilarious.  see last comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/php-goto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>handling checkboxes in symfony forms 1.2</title>
		<link>http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/</link>
		<comments>http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 15:41:54 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=172</guid>
		<description><![CDATA[Checkboxes aren&#8217;t really covered in the tutorial for forms in 1.2.  However, it&#8217;s covered pretty well on the blog over here: http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice One thing to note:  if you need a multiple checkboxes for one value (in php it&#8217;s handled like &#8230; <a href="http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Checkboxes aren&#8217;t really covered in the tutorial for forms in 1.2.  However, it&#8217;s covered pretty well on the blog over here:</p>
<p><a href="http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice">http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice</a></p>
<p>One thing to note:  if you need a multiple checkboxes for one value (in php it&#8217;s handled like so: varname[]), you would use the sfWidgetFormChoice with the multiple=&gt;true and expanded=&gt;true.</p>
<p>Also, if it&#8217;s an array of values, use sfValidatorChoiceMany instead of sfValidatorChoice.</p>
<p>-d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/handling-checkboxes-in-symfony-forms-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>escaping output in symfony &#8211; wtf is going on????</title>
		<link>http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/</link>
		<comments>http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:19:14 +0000</pubDate>
		<dc:creator>David Wang</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.udfi.biz/?p=168</guid>
		<description><![CDATA[Ok, I was a little confused as to what the hell was happening when I escaped my output in symfony.  It looks like the 1.2 framework takes all your values and objectifies them, putting them into classes.  For your arrays, &#8230; <a href="http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, I was a little confused as to what the hell was happening when I escaped my output in symfony.  It looks like the 1.2 framework takes all your values and objectifies them, putting them into classes.  For your arrays, they go into sfOutputEscaperArrayDecorator.</p>
<p>What this means is that now when you are trying to use the array in a view, you need to call the getRaw function that sfOutputEscaperArrayDecorator has.  SO:</p>
<p>in your action:</p>
<p>$my_array = array(1,2,3,4);</p>
<p>in your view print_r($my_array) will throw in error.  what you need to do instead is:</p>
<p>print_r($my_array-&gt;getRawValue());</p>
<p>I haven&#8217;t tested the rest of the objects out, but im assuming you can get the actual object by calling getRaw() on the variable name.</p>
<p>-d</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udfi.biz/2009/08/escaping-output-in-symfony-wtf-is-going-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

