<?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>Thu, 20 Jun 2013 00:28:37 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Systems Architect Blog: Apache2 vs Nginx for PHP application]]></title>
      <guid>http://www.phpdeveloper.org/news/19382</guid>
      <link>http://www.phpdeveloper.org/news/19382</link>
      <description><![CDATA[<p>
On the Systems Architect blog there's a recent post from <i>Lukasz Kujawa</i> about <a href="http://systemsarchitect.net/apache2-vs-nginx-for-php-application/">comparing Apache2 and Nginx</a> for PHP applications, specifically when using the PHP-FPM module. His tests are based on the results from three different application types - a large Zend Framework 1 app, a small PHP script and a WordPress installation.
</p>
<blockquote>
If you've ever been trying to squeeze more out of hardware you must have come across <a href="http://nginx.org/en/">Nginx</a> (engine x). Nginx usually appears in context of PHP-FPM (FastCGI Process Manager) and APC (Alternative PHP Cache). This setup is often pitched to be the ultimate combo for a web server but what that really means? How much faster a PHP application is going to be on a different web server? I had to check it and the answer as often is - that depends.
</blockquote>
<p>
He ran the tests on an Amazone EC2 instance and optimized the server to ensure that there was a little interference as possible. The used the Zend Optimizer Plus opcode cache and PHP 5.4 and set the logs to go to memory instead of disk. Graphs included in the post show the results of the benchmarking of each application, with the differences (in most cases) not being that wide of a gap.
</p>
<blockquote>
There isn't big difference between Apache2 and Nginx in PHP context. Yes, Nginx can be much faster when delivering static content but it won't speed up PHP execution. Running a PHP script seams to be so CPU challenging task that it completely eclipse any gain from a web server.
</blockquote>]]></description>
      <pubDate>Fri, 29 Mar 2013 10:41:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Framework Blog: Zend Framework 1 is Migrating to Git!]]></title>
      <guid>http://www.phpdeveloper.org/news/19375</guid>
      <link>http://www.phpdeveloper.org/news/19375</link>
      <description><![CDATA[<p>
The Zend Framework project has announced a major move for the framework's development - the Zend Framework v1 repositories will be <a href="http://framework.zend.com/blog/2013-03-27-zf1-git-migration.html">moving from Subversion to Git</a> over the next year or so.
</p>
<blockquote>
Since its inception, Zend Framework 1 has used <a href="http://subversion.apache.org/">Subversion</a> for versioning. However, as we approach its end-of-life (which will occur 12-18 months from the time this post is written), and as our experience with ZF2 processes becomes more familiar, we -- the Zend team and the Community Review team -- feel that we can better support ZF1 via <a href="http://github.com/">GitHub</a>. As such, we will be migrating the ZF1 Subversion repository to GitHub this week. Please read on for details!
</blockquote>
<p>
<a href="http://framework.zend.com/blog/2013-03-27-zf1-git-migration.html">The post</a> details the steps that'll be taken during the process including the changing of the location of the "master" branch (and how to change svn to point to it) and the updates to the integration of the Dojo libraries. They also talk some about the "extras" repository and how things will work with the Issue Tracker and pull requests in the future. 
</p>
<blockquote>
The repository and issues migration is the first step in a series of planned migrations. We also plan to eventually migrate our wiki to GitHub; this will allow us to offload functionality from the main ZF website, and also consolidate all development-related functionality (other than the mailing list) in a central location.
</blockquote>]]></description>
      <pubDate>Thu, 28 Mar 2013 09:29:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Setting Custom Error Messages for Zend_Form_Element]]></title>
      <guid>http://www.phpdeveloper.org/news/18589</guid>
      <link>http://www.phpdeveloper.org/news/18589</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new post for all the Zend Framework (v1) users out there. In it, <i>Aurelio De Rosa</i> shows you how to <a href="http://phpmaster.com/setting-custom-error-messages-for-zend_form_element/">set custom error messages</a> for elements in a Zend_Form.
</p>
<blockquote>
In this article I'll show the solution to a common problem which arises when a developer has to create a non-English website or application that is based on the Zend Framework. How do we mark a field of a Zend_Form which is a Zend_Form_Element as invalid, showing one or more custom error messages? The problem is mainly caused by the native counter-intuitive methods of the Zend_Form_Element class which I'll explain in more details.
</blockquote>
<p>
He's included a basic example showing the creation of a form and the setup of a text element and some validators to match. He makes a controller and view to handle the output and submission then shows how to use "setErrors" (and "setErrorMessages") of the Zend_Form elements to setup that custom error. This only lets you set one message, though, regardless of the point of failure. To stop things when there's an error, you have to set the "breakChainOnFailure" parameter on the validator to false - then the message will make more sense.
</p>]]></description>
      <pubDate>Thu, 11 Oct 2012 08:58:37 -0500</pubDate>
    </item>
  </channel>
</rss>
