<?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>Mon, 21 May 2012 07:35:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHP.net: PHP 5.4.3 and PHP 5.3.13 Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/17932</guid>
      <link>http://www.phpdeveloper.org/news/17932</link>
      <description><![CDATA[<p>
The PHP project has released another update to both the 5.3.x and 5.4 revisions of the language <a href="http://www.php.net/archive/2012.php#id2012-05-08-1">correcting the bug</a> that was found dealing with a flaw in CGI-based setups.
</p>
<blockquote>
The PHP development team would like to announce the immediate availability of PHP 5.4.3 and PHP 5.3.13. All users are encouraged to upgrade to PHP 5.4.3 or PHP 5.3.13 The releases complete a fix for a <a href="http://www.php.net/archive/2012.php#id2012-05-03-1">vulnerability</a> in CGI-based setups (CVE-2012-2311). Note: mod_php and php-fpm are not vulnerable to this attack. PHP 5.4.3 fixes a buffer overflow vulnerability in the <a href="http://php.net/manual/function.apache-request-headers.php">apache_request_headers()</a> (CVE-2012-2329). The PHP 5.3 series is not vulnerable to this issue.
</blockquote>
<p>
Users are encouraged to upgrade their applications, especially those using CGI-based setups. You can find the latest source on <a href="http://www.php.net/downloads.php">the downloads page</a> and the Windows binaries on <a href="http://windows.php.net/download/">windows.php.net</a>.
</p>]]></description>
      <pubDate>Wed, 09 May 2012 07:10:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: PHP 5.3.12 and PHP 5.4.2 Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/17907</guid>
      <link>http://www.phpdeveloper.org/news/17907</link>
      <description><![CDATA[<p>
The PHP project has <a href="http://www.php.net/archive/2012.php#id2012-05-03-1">officially released the latest versions</a> in both the 5.3.x and 5.4.x series in response to a bug that was found in the CGI setup of certain server+PHP configurations.
</p>
<blockquote>
<p>
There is a vulnerability in certain CGI-based setups (Apache+mod_php and nginx+php-fpm are not affected) that has gone unnoticed for at least 8 years. Section 7 of the CGI spec states: 'Some systems support a method for supplying a [sic] array of strings to the CGI script. This is only used in the case of an `indexed' query. This is identified by a "GET" or "HEAD" HTTP request with a URL search string not containing any unencoded "=" characters.'
</p>
<p>
A large number of sites run PHP as either an Apache module through mod_php or using php-fpm under nginx. Neither of these setups are vulnerable to this. Straight shebang-style CGI also does not appear to be vulnerable. If you are using Apache mod_cgi to run PHP you may be vulnerable. To see if you are, just add ?-s to the end of any of your URLs. If you see your source code, you are vulnerable. If your site renders normally, you are not.
</p>
</blockquote>
<p>
You can download this latest version from <a href="http://www.php.net/downloads.php">the downloads page</a> for the source releases or <a href="http://windows.php.net">windows.php.net</a> for the Windows binaries. You can look at <a href="http://www.php.net/ChangeLog-5.php#5.4.2">the Changelog</a> if you'd like more details on the update.
</p>]]></description>
      <pubDate>Fri, 04 May 2012 07:19:08 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Wojciech Sznapka's Blog: Deploying Symfony2 applications with Ant]]></title>
      <guid>http://www.phpdeveloper.org/news/17850</guid>
      <link>http://www.phpdeveloper.org/news/17850</link>
      <description><![CDATA[<p>
In <a href="http://blog.sznapka.pl/deploying-symfony2-applications-with-ant/">this new post</a> <i>Wojciech Sznapka</i> shows you how to can set up an <a href="http://ant.apache.org/">Apache Ant</a> deployment for a basic Symfony2 application - including installation of vendor packages and assets.
</p>
<blockquote>
When you have plenty of Symfony2 applications and you need to deploy them from time to time, you are probably sick of thinking about every activity you need to do for every deploy. Often people use some build scripts, which are hard to maintain and tends to be unreadable. I wanted to automate it as much as it possible and I've choosen Ant, to help me out.
</blockquote>
<p>
An example build.xml file is <a href="http://blog.sznapka.pl/deploying-symfony2-applications-with-ant/">included in the post</a> that shows how to:
</p>
<ul>
<li>Pull the current code from git
<li>Install vendor packages
<li>Fix permissions for the log and cache directories
<li>Clean up the cache
<li>Dump/install any additional assets
</ul>]]></description>
      <pubDate>Mon, 23 Apr 2012 10:54:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Joshua Thijssen's Blog: php 5.4 + htrouter: Your personal Apache 2.2 compatible server]]></title>
      <guid>http://www.phpdeveloper.org/news/17296</guid>
      <link>http://www.phpdeveloper.org/news/17296</link>
      <description><![CDATA[<p>
<i>Joshua Thijssen</i> has a new post to his blog today about a feature of the upcoming PHP 5.4 release, the built-in web server, and <a href="http://www.adayinthelifeof.nl/2011/12/22/php-5-4-htrouter-your-personal-apache-2-2-compatible-server/">a handy way to reproduce .htaccess functionality</a> with the help of a simple PHP script - <a href="https://github.com/jaytaph/htrouter">htrouter</a>.
</p>
<blockquote>
The problem with the new PHP 5.4 internal web-server is that it isn't Apache. Thus it does not know anything about .htaccess. Even when you have defined your .htaccess to do authentication, the internal PHP web-server will ignore it, while in production, the authentication will be needed (if you will be running Apache, of course). Also, you need to reroute everything manually through your app_dev.php, so your URL's don't really match the way they will be on your production.
</blockquote>
<p>
He introduces the PHP web server quickly, just showing a sample command line call to start it up and to point it at a certain PHP file as a "boostrap". With the help of his <a href="https://github.com/jaytaph/htrouter">htrouter</a> script, though, you can use "modules" similar to those in Apache. He already has the HTTP auth stuff working and more is to come.
</p>]]></description>
      <pubDate>Fri, 23 Dec 2011 08:27:10 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Robert Basic's Blog: Benchmarking pages behind a login with ab]]></title>
      <guid>http://www.phpdeveloper.org/news/17124</guid>
      <link>http://www.phpdeveloper.org/news/17124</link>
      <description><![CDATA[<p>
<i>Robert Basic</i> has a recent post showing you how to use the "cookie jar" functionality included with Apache's "ab" benchmarking tool to <a href="http://robertbasic.com/blog/benchmarking-pages-behind-a-login-with-ab/">get behind your PHP-based login</a> with a simple curl and grep combo.
</p>
<blockquote>
Tonight I decided to relax a bit and what better way of relaxing is there for a geek then to do some bash scripting?! So for fun and no profit I decided to try and benchmark pages with <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">ab, Apache HTTP server benchmarking tool</a>, which are behind a login. Turns out, it's pretty easy after reading some man pages.
</blockquote>
<p>
He includes an example of the format of the "cookie jar" and the shell script he used to grab the PHP session ID from it and inject it into the "ab" call. The <a href="https://github.com/robertbasic/blog-examples/tree/master/ab-login">script is on github</a>.
</p>]]></description>
      <pubDate>Mon, 14 Nov 2011 10:12:05 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: Zend Framework from Scratch]]></title>
      <guid>http://www.phpdeveloper.org/news/17079</guid>
      <link>http://www.phpdeveloper.org/news/17079</link>
      <description><![CDATA[<p>
On NetTuts.com today there's a new tutorial helping you <a href="http://net.tutsplus.com/tutorials/php/zend-framework-from-scratch/">get started with Zend Framework</a> "from scratch". They outline the full process - from download to the creation of a first application.
</p>
<blockquote>
Ready to take your PHP skills to the next level? In this new "From Scratch" series, we'll focus exclusively on <a href="http://framework.zend.com/">Zend Framework</a>, a full-stack PHP framework created by Zend Technologies. First in our tutorial series, is "Getting Started with Zend Framework."
</blockquote>
<p>
The tutorial (executed in a Windows environment) is broken up into seven parts:
</p>
<ul>
<li>Download Zend Framework
<li>Set up your Zend Framework Environment
<li>Create your First Zend Framework Project
<li>Learn about Zend Framework's MVC Structure
<li>Pass Data From a Controller to its View
<li>Create a Layout in Zend Framework
<li>Create New Controllers and Actions
</ul>
<p>
They use the Windows version of <a href="http://httpd.apache.org/">Apache</a> to host the site (installation instructions not included). If you'd like to get the source for this tutorial series as it evolves, you can <a href="https://github.com/nikkobautista/The-Next-Social">find it on github</a>.
</p>]]></description>
      <pubDate>Thu, 03 Nov 2011 08:50:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: How to setup multiple PHP versions on Apache]]></title>
      <guid>http://www.phpdeveloper.org/news/16758</guid>
      <link>http://www.phpdeveloper.org/news/16758</link>
      <description><![CDATA[<p>
On the ServerGrove blog today there's a new post from <i>Ishmael</i> about setting up <a href="http://blog.servergrove.com/2011/08/22/how-to-setup-multiple-php-versions-on-apache/">multiple versions of PHP on one Apache instance</a> with the help of FastCGI.
</p>
<blockquote>
There are several reasons you might need to run multiple versions of PHP on the same server. Maybe you have a PHP 5.2 application running on your server and you need to start working on another application based on a new framework like Symfony2 or Lithium? Perhaps you haver a client with a legacy site that runs PHP 5.2, or maybe you simply want to test some of the new functionality? This post is going to explain how to setup a server to run multiple versions of PHP.
</blockquote>
<p>
Normally, Apache can only be compiled with one version of PHP, but FastCGI gets around that by letting you define it in a configuration file instead. They also include support for defining the user the process runs as (suexec) that helps to make permissions issues lesser. Included are all of the command-line calls and config settings you'll need to make to get things set up.
</p>]]></description>
      <pubDate>Tue, 23 Aug 2011 11:07:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pim Elshoff's Blog: Setting up a kickass development environment on Windows]]></title>
      <guid>http://www.phpdeveloper.org/news/16634</guid>
      <link>http://www.phpdeveloper.org/news/16634</link>
      <description><![CDATA[<p>
<i>Pim Elshoff</i> has a recent post to his blog looking at a "<a href="http://www.pelshoff.com/2011/07/setting-up-a-kickass-development-environment-on-windows">kickass development environment</a>" he's gotten working on Windows that includes PEAR, some type of version control (git or svn - take your pick), Ant for builds and Jenkins for continuous integration.
</p>
<blockquote>
Recently I have become quite interested in quality assurance. Not that many things are going wrong for me, but I'd really like to be more certain about the quality of my work. I've used some tools to help me achieve just that. In less than two hours you can set up your workspace and have the living daylights automated out of you!&#65279;
</blockquote>
<p>
He <a href="http://www.pelshoff.com/2011/07/setting-up-a-kickass-development-environment-on-windows">provides a full guide</a> to getting the full stack set up including the command-line calls you'll need to make, creating a new build file for Ant and setting up the PHP tools (like Phpmd, DocBlox and Pdepend). In the end, you should see something similar to <a href="http://www.pelshoff.com/UserFiles/Images/Large/BlogImages/Jenkins_screenshot.png">this setup</a> in your Jenkins build.
</p>]]></description>
      <pubDate>Tue, 26 Jul 2011 11:04:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Setting up PHP & MySQL on OS X 10.7 Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/16628</guid>
      <link>http://www.phpdeveloper.org/news/16628</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted his own guide to getting <a href="http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/">PHP 5.3 set up on OS X 10.7 Lion</a>, the just-released update for Apple's operating system. It comes with a bundled set of PHP-related tools but you might want to set them up your own way. This is where the guide comes in.
</p>
<blockquote>
With OS X 10.7, Apple continues to ship PHP 5.3 with PEAR, GD and PDO_MYSQL out of the box. This is how to set it up from a clean install of 10.7.
</blockquote>
<p>
He goes through each of the pieces of software and talks about where to download the latest from and what configuration steps are needed:
</p>
<ul>
<li>MySQL
<li>Apache
<li>the php.ini
<li>Xdebug
<li>PEAR
<li>PHPUnit (and friends)
<li>PECL OAuth
<li>mcrypt
</ul>]]></description>
      <pubDate>Mon, 25 Jul 2011 12:12:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Shay Ben Moshe's Blog: PDO Persistent Connection Analysis]]></title>
      <guid>http://www.phpdeveloper.org/news/16526</guid>
      <link>http://www.phpdeveloper.org/news/16526</link>
      <description><![CDATA[<p>
<i>Shay Ben Moshe</i> has a new post to his blog today looking at <a href="http://blog.shay.co/pdo-persistent-connection-analysis/">some of the benefits</a> that using the persistent connections offered in <a href="http://php.net/pdo">PDO</a> can have on your application.
</p>
<blockquote>
<a href="http://php.net/manual/en/book.pdo.php">PDO</a> is an abstraction layer for database connections in PHP, and it became increasingly popular in the past few years. PDO gives us the option to use a persistent connection. If we don't use this option, a new connection is created for each request. If we do use this option, the connection is not closed at the end of the script, and it is then re-used by other script requests.
</blockquote>
<p>
He shares the setup for his testing (hardware and MySQL configuration) and some of the results from his tests using the Apache <a href="http://httpd.apache.org/docs/2.0/programs/ab.html">ab tool</a> for making web requests against an application. You'll need to <a href="http://blog.shay.co/files/pdo.rar">download the archived file</a> to see the results, though. It also includes the files he used to test with, comparing regular connections to the persistent ones.
</p>]]></description>
      <pubDate>Tue, 28 Jun 2011 08:11:15 -0500</pubDate>
    </item>
  </channel>
</rss>

