<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 21 Nov 2008 07:11:55 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Christian Weiske's Blog: Importing huge XML files using PHP5 - efficiently and conveniently]]></title>
      <guid>http://www.phpdeveloper.org/news/10889</guid>
      <link>http://www.phpdeveloper.org/news/10889</link>
      <description><![CDATA[<p>
<i>Christian Weiske</i> has a <a href="http://cweiske.de/tagebuch/Importing%20huge%20XML%20files%20using%20PHP5%20-%20efficiently%20and%20conveniently.htm">quick tip</a> on how to get larger XML files to pull into PHP5 and be usable:
</p>
<blockquote>
At work I had the task to implement the synchronization between an online shop and a commodity management system. Data exchange format was XML - one big XML file for all of the products (some thousands with dozens of attributes). Big question: How do I import the file in a way that is most convenient for me as a programmer - and without exceeding the machine's RAM when loading a 1 GiB file?
</blockquote>
<p>
The newer alternatives both use the same technology (DOM and SimpleXML - with DOM behind it) so he goes more "low tech" than that and opts for the XMLReader extension to pull in the large amounts of data. Available in PHP5, the XMLReader extension, which he combines with an Iterator from the SPL to makes for a simple, quick little parser.
</p>]]></description>
      <pubDate>Mon, 25 Aug 2008 09:34:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Last we checked, PHP IS a framework.]]></title>
      <guid>http://www.phpdeveloper.org/news/10367</guid>
      <link>http://www.phpdeveloper.org/news/10367</link>
      <description><![CDATA[<p>
According to <i>Akash Mehta</i> in <a href="http://www.sitepoint.com/blogs/2008/06/08/last-we-checked-php-is-a-framework/">this new post</a> on the SitePoint PHP blog, all of the frameworks out there aren't really needed because "last we checked, PHP IS a framework".
</p>
<blockquote>
Now, consider the "average" PHP frameworks. They help you handle request data, manage your output, control app flow - essentially, extending PHP's inbuilt functionality. They are, therefore, PHP frameworks on the PHP framework. PHP provides a vast array (pardon the pun) of functionality out of the box. But when you want to do things your way, it gets out of the way, and this is really important when building anything beyond a simple database frontend.
</blockquote>
<p>
He <a href="http://www.sitepoint.com/blogs/2008/06/08/last-we-checked-php-is-a-framework/">suggests</a> that PHP is a "half framework" on its own, providing quick an easy methods and functionality to build up applications. He gives an example of Twitter (and really, who isn't picking on them these days) and how it probably could have avoided a lot of the issues it is seeing if it had gone with something a bit more efficient and flexible.
</p>
<p>
Be sure to check out <a href="http://www.sitepoint.com/blogs/2008/06/08/last-we-checked-php-is-a-framework/#comments">the comments</a> for some other great opinions from the community.
</p>]]></description>
      <pubDate>Mon, 09 Jun 2008 09:33:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Kae Verens' Blog: efficient JS minification using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10232</guid>
      <link>http://www.phpdeveloper.org/news/10232</link>
      <description><![CDATA[<p>
In a <a href="http://verens.com/archives/2008/05/20/efficient-js-minification-using-php/">new post</a> today, <i>Kae Verens</i> takes a look at a method for easy and quick javascript minification with help from a little bit of PHP.
</p>
<blockquote>
A useful part of minification is that during the act of compiling your minified source, you can also pull in other JavaScript files and compiled them all into one single source. This has a major advantage that there is only one file to download.
</blockquote>
<p>
The <a href="http://verens.com/archives/2008/05/20/efficient-js-minification-using-php/">method</a> runs a <a href="http://www.php.net/file_get_contents">file_get_contents</a> on each of the javascript files, and pulls their content into a single PHP variable. This value is then just echoed out after it's passes through <a href="http://code.google.com/p/jsmin-php/">this minimizer class</a>. 
</p>
<p>
<i>Kae</i> also offers an alternative to performing this expensive operation each time - caching then checking the md5 hash of the cache to see if it's different than the current version. Example code is included.
</p>]]></description>
      <pubDate>Wed, 21 May 2008 10:25:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Josh Sharp's Blog: Why you should be using a framework]]></title>
      <guid>http://www.phpdeveloper.org/news/8892</guid>
      <link>http://www.phpdeveloper.org/news/8892</link>
      <description><![CDATA[<p>
<i>Josh Sharp</i> has <a href="http://joshsharp.com.au/blog/view/why_you_should_be_using_a_framework">posted a new article</a> to his blog advocating something that there's still a lot of controversy around in the PHP community - frameworks (when to use them and when to not).
</p>
<blockquote>
PHP's ease of use is also its downfall. Because there are less restrictions on the structure of the code you write, it's much easier to write bad code. But there is a solution: use a framework. [...] Of course, if you're not taken with any of the packages above you can also write your own framework, which I've done and will talk about in the next few posts. But for now, let's have a look at the common benefits of a framework.
</blockquote>
<p>
He's broken it out to talk about the usual framework structure, MVC and how a framework can enforce good code standards. He also mentions some happy side benefits of their use including making for "pretty URLs" and the helpers that most of the frameworks come with.
</p>]]></description>
      <pubDate>Tue, 23 Oct 2007 17:52:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Wez Furlong's Blog: Just the facts, ma'am]]></title>
      <guid>http://www.phpdeveloper.org/news/5292</guid>
      <link>http://www.phpdeveloper.org/news/5292</link>
      <description><![CDATA[<p>
<i>Wez Furlong</i> <a href="http://netevil.org/node.php?nid=818">posts today</a> about a response made to a previous mention of "PHP vs. ASP.NET" in <a href="http://www.oracle.com/technology/pub/articles/hull_asp.html">this article</a> from <i>Joe Stagner</i> in <a href="http://blogs.msdn.com/joestagner/archive/2006/05/01/587567.aspx">this post</a> on his MSDN blog.
</p>
<p>
From <a href="http://netevil.org/node.php?nid=818">Wez</a>:
</p>
<quote>
<i>
<p>
Joe's response is perhaps a little pro-Microsoft (you can't really blame him for that--he does work there :-) but the essence of his response rings true; there's nowhere near enough factual data in the OTN article to make a balanced decision one way or the other.
</p>
<p>
To be fair to Sean (the author of the OTN article), it does say "Opinion" across the top of the page and the byline is "One developer's view of the pros and cons of the two most popular means of building web applications", but it's easy to forget those once you're into the article.
</p>
</i>
</quote>
<p>
<i>Wez</i> also <a href="http://netevil.org/node.php?nid=818">mentions</a> one of his personal views on the whole debate, basically saying that even if PHP is the faster/more efficient, some situations might do better with an ASP.NET solution (what's the cost of implementation?).
</p>]]></description>
      <pubDate>Wed, 03 May 2006 06:51:39 -0500</pubDate>
    </item>
  </channel>
</rss>
