<?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>Sun, 12 Feb 2012 20:14:01 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: PHP 5.4 Built In Webserver]]></title>
      <guid>http://www.phpdeveloper.org/news/17464</guid>
      <link>http://www.phpdeveloper.org/news/17464</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has <a href="http://www.lornajane.net/posts/2012/php-5-4-built-in-webserver">posted a quick tutorial</a> about a feature of the upcoming PHP 5.4 release, the built-in web server, and some tips on doing things like routing requests and changing the hostname.
</p>
<blockquote>
One of the big features arriving with PHP 5.4 is the addition of a built-in basic webserver for use in development environments. Quite a few of the other scripting languages have something like this so I'm very pleased to see it in PHP. Using a server like this makes it easy to quickly try out some scripts without needing to configure apache or really do anything much! I had to look up a few things to get started, so I thought I'd write them down for posterity.
</blockquote>
<p>
She includes instructions on how to get the server up and running from the command line, updating the location of the document root with a command line option and using a simple "routing.php" script to act as a front controller. Changing the hostname is as simple as changing "localhost" to something else when starting the server. 
</p>]]></description>
      <pubDate>Mon, 30 Jan 2012 11:35:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Michaelangelo van Dam' Blog: Configuring Zend Framework apps for Windows Azure]]></title>
      <guid>http://www.phpdeveloper.org/news/17274</guid>
      <link>http://www.phpdeveloper.org/news/17274</link>
      <description><![CDATA[<p>
<i>Michelangelo van Dam</i> is back with the <a href="http://www.dragonbe.com/2011/12/configuring-zend-framework-apps-for.html">second part</a> of his series looking at running PHP applications on Azure (the first part <a href="http://phpdeveloper.org/news/17242>is here</a>). In this new post he focuses more on configuring and building an actual application, one based on the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
Building web applications is nothing new anymore, as we've been doing it since the early days of the internet, but we've always done this on a single system. Even when <a href="http://framework.zend.com/">Zend Framework</a> came round, we kept doing the same thing and build apps for a single environment.
But as I've discussed already in <a href="http://www.dragonbe.com/2011/12/windows-azure-for-php-developers.html">my previous article</a>, developing for the cloud requires another approach. [...] With <a href="http://framework.zend.com/">Zend Framework</a> developing applications running on these separate compontents becomes really easy. It's like having your cloud toolbox right in your pocket.
</blockquote>
<p>
He walks you through the settings needed to interact with a MySQL database backend, setting up sessions to write to the database, caching information to a memcache server and storing files on a remote destination (in this case cloud storage). 
</p>]]></description>
      <pubDate>Mon, 19 Dec 2011 08:50:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chance Garcia's Blog: MAMP PRO, PECL, SSH2, and OSX CLI (AKA acronym madness)]]></title>
      <guid>http://www.phpdeveloper.org/news/17107</guid>
      <link>http://www.phpdeveloper.org/news/17107</link>
      <description><![CDATA[<p>
<i>Chance Garcia</i> has a recent post to his blog showing how he <a href="http://phpprotip.com/2011/11/mamp-pro-pecl-ssh2-and-osx-cli-aka-acronym-madness/">fixed an issue with his MAMP install</a> involving development of a <a href="https://github.com/chancegarcia/CG/blob/github/Ssh.php">SSH wrapper</a> he developed and some testing out of PHPStorm and PHPUnit.
</p>
<blockquote>
One thing I can say is that, even though I use a convenient app like MAMP PRO to set up my local development environment, I'm glad my sysadmin-fu is up to snuff enough to fly without the conveniences because after this ordeal, I feel like I might as well have made my MAMP stack from scratch with all the hoops I jumped tonight.
</blockquote>
<p>
He shares a few of the things he discovered along the way like: the location of MAMP's "pecl" command, an error caused by a bad pear.conf file, doing custom compiles of PHP and libssh as a fallback and getting the extension to work in the CLI PHP version too.
</p>]]></description>
      <pubDate>Wed, 09 Nov 2011 11:37:34 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Justin Carmony's Blog: Setting Up Nginx & PHP-FPM on Ubuntu 10.04]]></title>
      <guid>http://www.phpdeveloper.org/news/17040</guid>
      <link>http://www.phpdeveloper.org/news/17040</link>
      <description><![CDATA[<p>
<i>Justin Carmony</i> has a new tutorial posted to his blog today about <a href="http://www.justincarmony.com/blog/2011/10/24/setting-up-nginx-php-fpm-on-ubuntu-10-04/">setting up Nginx and PHP-FPM on Ubuntu</a> in a few easy steps (thanks to some package management).
</p>
<blockquote>
This is another wonderful setup that I've found myself using rather than the traditional Apache & mod_php setup. [...] Ngnix, unlike Apache, doesn't actually load PHP. Instead, it hands it off as a proxy to a "php handler" which acts like an Application Server. So nginx by itself won't serve PHP files, but just static files.
</blockquote>
<p>
He briefly introduces <a href="http://nginx.org/">Nginx</a> and <a href="http://php-fpm.org/">PHP-FPM</a> for those not familiar and points out that this combination is very fast, even without much configuration. The packages are installed with the aptitude installer and minimal changes are made to the php-fm and nginx configuration files (mostly to set up whatever your domain/virtual host is).
</p>]]></description>
      <pubDate>Tue, 25 Oct 2011 13:39:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Abou Kone's Blog: Set up JSON action output in CakePHP 1.3]]></title>
      <guid>http://www.phpdeveloper.org/news/16962</guid>
      <link>http://www.phpdeveloper.org/news/16962</link>
      <description><![CDATA[<p>
<i>Abou Kone</i> has a recent post to his blog showing the CakePHP users out there how to <a href="http://aboukone.com/2011/10/04/set-up-json-action-output-in-cakephp-1-3/">set up JSON output</a> for your actions in a few simple steps.
</p>
<blockquote>
Working  on setting up the <a href="https://github.com/kvz/cakephp-rest-plugin">Rest Plugin</a> for CakePHP helped me realize that i wanted to set up JSON output for some of my actions. This way, if you request for example "www.yourapp.com/app/post/view/1.json" in the url, you will be returned the JSON post data. This <a href="http://blog.pagebakers.nl/2007/06/05/using-json-in-cakephp-12/">excellent tutorial here</a> will help you achieve it. 
</blockquote>
<p>
Changes include updates to configuration for routing, using the RequestHandler component and setting your actions to output the data correctly when the ".json" is detected on the request.
</p>]]></description>
      <pubDate>Fri, 07 Oct 2011 08:45:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[VXTIndia Blog: How to setup your new VPS Ubuntu server]]></title>
      <guid>http://www.phpdeveloper.org/news/16790</guid>
      <link>http://www.phpdeveloper.org/news/16790</link>
      <description><![CDATA[<p>
On the VXTIndia blog there's a recent post that gives you a <a href="http://vxtindia.com/blog/how-to-setup-your-new-vps-ubuntu-server/">very complete guide</a> to setting up a VPS server running Ubunut with all of the software you'd need to get a (more than) complete server up and running.
</p>
<blockquote>
Every time you purchase a new Linux VPS, you need to go ahead and set it up for use. Even though we manage to do one server a month, we always seem to forget one thing or the other. So we decided to write down the things that we do. I thought it would be a good thing to share it with everybody as well, so that we could get a few comments about what we're doing wrong, and people who do it the first time can probably pick up a few things from here.
</blockquote>
<p>Steps and software involved in their process include:</p>
<ul>
<li>Updating to the latest Ubuntu packages
<li>Creating other users for the system
<li>Installing the web environment (including PHP, MySQL, phpmyadmin and Apache2)
<li><a href="http://munin-monitoring.org/">Minin</a> for monitoring
<li>Configuring IPTables
<li>Installing <a href="http://www.fail2ban.org/wiki/index.php/Main_Page">Fail2Ban</a>
</ul>
<p>
All of this comes complete with the additions you'll need to make to configuration files and the commands to get everything installed (via aptitude).
</p>]]></description>
      <pubDate>Tue, 30 Aug 2011 10:02:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tom Jowitt's Blog: Streamlined PHP Development - Part III]]></title>
      <guid>http://www.phpdeveloper.org/news/16701</guid>
      <link>http://www.phpdeveloper.org/news/16701</link>
      <description><![CDATA[<p>
<i>Tom Jowitt</i> has posted his <a href="http://www.tomjowitt.co.uk/2011/07/21/streamlined-php-development-part-iii/">third part</a> in his "streamlined PHP development" series today focusing on working with databases and setting it up with your automated deployment system (parts <a href="http://phpdeveloper.org/news/16603">one</a> and <a href="http://phpdeveloper.org/news/16610">two</a>).
</p>
<blockquote>
In the first two parts of this series we covered <a href="http://www.tomjowitt.co.uk/2011/07/16/streamlined-php-development-part-i/">setting up the server</a> and an <a href="http://www.tomjowitt.co.uk/2011/07/20/streamlined-php-development-part-ii/">introduction to Phing</a>. This post will cover managing our database code with <a href="http://dbdeploy.com/">dbdeploy</a> and Phing.
</blockquote>
<p>
He points out that there's no "silver bullet" when it comes to automated database management but he's found <a href="http://dbdeploy.com/">dbdeploy</a> as a good tool for his needs. He includes the configuration changes to get the database login information into Phing and a few new targets/tasks to add to the Phing configuration for initializing the database and applying patches.
</p>]]></description>
      <pubDate>Wed, 10 Aug 2011 11:09:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: Improvements for PHP application portability in PHP.next]]></title>
      <guid>http://www.phpdeveloper.org/news/16631</guid>
      <link>http://www.phpdeveloper.org/news/16631</link>
      <description><![CDATA[<p>
In a new post today <i>Johannes Schluter</i> talks about the upcoming version of PHP and <a href="http://schlueters.de/blog/archives/156-Improvements-for-PHP-application-portability-in-PHP.next.html">three of the things</a> it features: no more short tags, no more magic quotes and the dropping of the enable-zend-multibyte compile option.
</p>
<blockquote>
I was writing about <a href="http://schlueters.de/blog/plugin/tag/php%FFnext">PHP.next before</a>, many things improved there meanwhile. Most notably we have a committed version number: The next PHP release will be called PHP 5.4. The topic I want to talk about today is "Improved application portability" which covers multiple small changes which aim at making it simpler for developers to write applications working on any PHP setup.
</blockquote>
<p>
The first two will be immediately familiar to any PHP developer, but the third might be a little more elusive. This option was used to compile in multi-byte encodings to use for data in an application. Unfortunately a good implementation (that didn't use mbstring) couldn't be found, so they're removing the feature.
</p>]]></description>
      <pubDate>Tue, 26 Jul 2011 08:40:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christian Weiske's Blog: Installing PHP extensions for phpfarm]]></title>
      <guid>http://www.phpdeveloper.org/news/16624</guid>
      <link>http://www.phpdeveloper.org/news/16624</link>
      <description><![CDATA[<p>
<i>Christian Weiske</i> has a new post to his blog today on how to get <a href="http://cweiske.de/tagebuch/phpfarm-install-extensions.htm">PHP extensions installed for phpfarm</a>, the tool that lets you switch between <a href="http://cweiske.de/tagebuch/Introducing%20phpfarm.htm">multiple PHP versions</a> on the same machine.
</p>
<blockquote>
When using several PHP installations with <a href="http://cweiske.de/tagebuch/Introducing%20phpfarm.htm">phpfarm</a>, installing PHP extensions is not always easy - mostly because <a href="http://pear2.php.net/">Pyrus</a> is very strict about package files - and many of the packages in <a href="http://pecl.php.net/">PECL</a> unfortunately <a href="http://pecl.php.net/bugs/search.php?search_for=invalid+package.xml&limit=10&direction=ASC&cmd=display&status=Open&bug_type=All">have invalid</a> non-validating package.xmls.
</blockquote>
<p>
The installation follows most of the normal process with one exception - you use the phpfarm phpize and point the configure to use the phpfarm ini configuration file then enable it as usual.
</p>]]></description>
      <pubDate>Mon, 25 Jul 2011 08:15:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tom Jowitt's Blog: Streamlined PHP Development - Part I]]></title>
      <guid>http://www.phpdeveloper.org/news/16603</guid>
      <link>http://www.phpdeveloper.org/news/16603</link>
      <description><![CDATA[<p>
As the first part of a series, <i>Tom Jowitt</i> has posted <a href="http://www.tomjowitt.co.uk/2011/07/16/streamlined-php-development-part-i/">this introduction</a> to setting up a brand new development environment with some of the basic tools any PHP developer should need.
</p>
<blockquote>
I dunno about anyone else but my development environment is usually in some form of barely-controlled chaos. It's one command away from collapse with folders full of test software, symlinks that lead to long-forgotten libraries and ancient VCS repos that only a mother could love, all held together with sticky-tape shell scripts. [...] This series of posts will look at the tools available to PHP developers who want to be liberated from the mundane and the frustrating tasks that plague our lives.
</blockquote>
<p>
He doesn't describe the installation of the basic platform - Apache, PHP and MySQL on Ubuntu - but jumps right into the details of the settings. He shows how to:
<ul>
<li>configure the VirtualHosts in Apache, 
<li>installing and updating PEAR,
<li>Install/configure XDebug,
<li>Set up PHPUnit,
<li>and install git for version control
</ul>
<p>
In the next post he'll show how to set up <a href="http://www.phing.info/">Phing</a> for building/testing out the code.
</p>
]]></description>
      <pubDate>Mon, 18 Jul 2011 12:54:19 -0500</pubDate>
    </item>
  </channel>
</rss>

