<?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>Sat, 18 May 2013 07:09:50 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Chris Jones: Using PHP 5.5's New "Opcache" Opcode Cache]]></title>
      <guid>http://www.phpdeveloper.org/news/19324</guid>
      <link>http://www.phpdeveloper.org/news/19324</link>
      <description><![CDATA[<p>
<i>Chris Jones</i> has a new post to his Oracle blog today talking about the <a href="https://blogs.oracle.com/opal/entry/using_php_5_5_s">new "opcode" opcode caching</a> that's going to be built into future PHP versions This is the implementation of the Zend Optimizer+ opcode caching in a native language interface. The latest <a href="http://snaps.php.net/">PHP 5.5 snapshots</a> have it included.
</p>
<blockquote>
The new "opcache" can be seen as substitute for the venerable <a href="http://pecl.php.net/package/APC">APC cache</a>, the maintenance of which had become an issue. Note: although opcache is now readily available, there is currently nothing preventing you from using any available (working!) opcode cache in PHP 5.5.
</blockquote>
<p>
He gives you a quick guide to getting this new opcode caching enabled and compiled into a shiny new download of the PHP 5.5.x branch. You'll need a special command line flag on the compile and to update your php.ini to load the needed shares module. You can also use it if you're on PHP 5.2 or higher either by <a href="https://github.com/zend-dev/ZendOptimizerPlus">compiling this source</a> or <a href="http://pecl.php.net/package/ZendOptimizerPlus">using this PECL extension</a>.
</p>]]></description>
      <pubDate>Mon, 18 Mar 2013 09:42:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[System Architect: Integrate PHP application with Solr search engine]]></title>
      <guid>http://www.phpdeveloper.org/news/19303</guid>
      <link>http://www.phpdeveloper.org/news/19303</link>
      <description><![CDATA[<p>
On the "System Architect" site there's a recent post showing you how to <a href="http://systemsarchitect.net/integrate-php-application-with-solr-search-engine/">integrate PHP and Solr</a>, the searching tool from the Apache project.
</p>
<blockquote>
So why do you need a search engine, is database not enough? If you create a small website it might not matter. With medium or big size applications it's often wiser to go for a search engine. Saying that, even a small websites can benefit from Solr if you desire a high level of relevance in search results.
</blockquote>
<p>
Their example involves an ecommerce website and a search for a term (iPhones) and how difficult it could be to match against the possible multiple variations on the models. Solr makes this kind of searching easier. He shows you how to get a Solr instance all set up and configured as well as the PHP PECL extension from <a href="https://github.com/lukaszkujawa/php-pecl-solr.git">here</a>. A sample PHP script is also included showing connecting to Solr, inserting a new document and searching for a simple query of "hello". 
</p>]]></description>
      <pubDate>Tue, 12 Mar 2013 12:01:43 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web & PHP Magazine: Issue #12 - Don't Get in a PECL]]></title>
      <guid>http://www.phpdeveloper.org/news/19290</guid>
      <link>http://www.phpdeveloper.org/news/19290</link>
      <description><![CDATA[<p>
The latest issue of the Web and PHP Magazine has been published - <a href="http://webandphp.com/issue-12">issue #12</a>, "Don't get in a PECL". This latest issue includes articles like:
</p>
<ul>
<li>"The Power of PECL" by <i>Simon Holywell</i>
<li>"Be 'ready' if you want to be done!" by <i>Steffan Surdek</i>
<li>"All Data is Relational" by <i>Cory Isaacson</i>
<lI>"Fixing PHP Production Problems with APM" by <i>Dan Delany</i> and <i>Chris Kelly</i>
<li>"Trust" by <i>Sebastian Bergmann</i>
</ul>
<p>
You can download your copy for free from <a href="http://webandphp.com/issue-12">their site</a> and catch up on back issues.
</p>]]></description>
      <pubDate>Fri, 08 Mar 2013 10:23:36 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell: Installing XHGui]]></title>
      <guid>http://www.phpdeveloper.org/news/19286</guid>
      <link>http://www.phpdeveloper.org/news/19286</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has a new post today showing you how to <a href="http://www.lornajane.net/posts/2013/installing-xhgui">install XHGui</a> to help with profiling your application for performance and processing issues.
</p>
<blockquote>
If you're not familiar with XHGui it's a fabulously easy and friendly way to profile your application; to understand which method calls in a page take the time and how many times they are made, so you can improve the performance of your application. All these instructions are for my 32-bit Ubuntu 12.10 system, hopefully they will work for you or you'll be able to adapt them as appropriate.
</blockquote>
<p>
She lists the dependencies you'll need to have installed before you can get XHGui working correctly including a MongoDB instance and the <a href="http://pecl.php.net/package/xhprof">PECL xhprof</a> extension. With those all set to go, you can go grab the latest XHGui <a href="https://github.com/preinheimer/xhgui">from github</a> and drop it into place. 
</p>]]></description>
      <pubDate>Thu, 07 Mar 2013 12:15:01 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lukas Smith: On predictable PHP release cycles]]></title>
      <guid>http://www.phpdeveloper.org/news/19256</guid>
      <link>http://www.phpdeveloper.org/news/19256</link>
      <description><![CDATA[<p>
<i>Lukas Smith</i> has a new post today about what he sees as an important part of PHP (or really most open source projects) - a <a href="http://pooteeweet.org/blog/0/2194#m2194">predictable release cycle</a>. It centers around the recent proposal to introduce the <a href="https://wiki.php.net/rfc/optimizerplus">Zend Optimizer+</a> into the core and how it seems to be causing a delay with 5.5 (maybe up to 2 months).
</p>
<blockquote>
What troubles me though is that its being proposed very late in the game for PHP 5.5, therefore causing a likely delay of 5.5 of at least about 2 months in the best case scenario if it were included. The other option of including it in 5.6 does not seem to be as popular at this point. This saddens me quite a bit since I believe that <a href="https://wiki.php.net/rfc/releaseprocess">predictable release cycles</a> would carry several advantages
</blockquote>
<p>
He points out some things that come along with having predicability around the software releases like developers knowing when/if their changes will make it into the next release. It also makes it easier for end users to plan their releases of their own software, knowing when they'll be getting a feature. In this particular case, though, he doesn't quite understand the delay as the Zend Optimizer+ isn't a change to core, it's an addition:
</p>
<blockquote>
What is even stranger for this case is that we are just talking about an extension here. Its not a language feature, there is no engine level integration. So even if its not added to core, people can easily get Optimizer+ via PECL. So in this case we are not talking about people having to wait another 10-11 months. Don't get me wrong I think getting an opcode cache into core is awesome, but the reality is that shared host users will probably still not have access to it [...] and the rest can still get it, albeit with a bit more effort. 
</blockquote>]]></description>
      <pubDate>Fri, 01 Mar 2013 09:37:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell: PHP and Gearman: Unable to connect after upgrade]]></title>
      <guid>http://www.phpdeveloper.org/news/19252</guid>
      <link>http://www.phpdeveloper.org/news/19252</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has shared some advice about <a href="http://www.lornajane.net/posts/2013/php-and-gearman-unable-to-connect-after-upgrade">correcting an issue with PHP and Gearman</a> after she did an upgrade via PECL.
</p>
<blockquote>
I upgraded PHP and related pecl modules on my development machine today, and ran into a problem with Gearman. Actually I ran into more than one! Firstly the challenge of getting the newest pecl version working with a gearman version. Then an error where my existing PHP application couldn't connect to gearman after upgrade.
</blockquote>
<p>
Running on Ubuntu, she found <a href="http://www.phamviet.net/2012/10/10/ubuntu-php-5-4-x-and-gearman-troubleshooting/">this tutorial</a> helpful in getting Gearman back into a working state and installed (version 1.1.1). The "unable to connect" error turned out to be a change in how the Gearman connection needed to be made - the addition of a port to the connection string made things work again. 
</p>]]></description>
      <pubDate>Thu, 28 Feb 2013 12:55:48 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Using SSH and SFTP with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/19020</guid>
      <link>http://www.phpdeveloper.org/news/19020</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a quick tutorial showing you how to <a href="http://phpmaster.com/using-ssh-and-sftp-with-php/">use SSH and SFTP</a> from inside your PHP applications (requiring the <a href="http://pecl.php.net/package/ssh2">ssh2 package</a>).
</p>
<blockquote>
In today's world with so many third-party integrations and content-sharing, it's important to understand and make use of protocols like SCP and SFTP. PHP's SSH2 extension, a wrapper for libssh2 which implements the SSH2 protocol, provides several functions you can use to securely transfer files.
</blockquote>
<p>
Sample code is included showing how to make a SSH request to a remote server, define the key files to use and execute a remote command (like scp). They also mention the use of wrapper functions like <a href="http://php.net/mkdir">mkdir</a> that also work with SSH/SFTP connections. The post finishes up with an example class or two you can use to wrap your connection handling and make it a bit more OOP-friendly.
</p>]]></description>
      <pubDate>Thu, 10 Jan 2013 11:31:52 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schl&uuml;ter: MySQL, Memcache, PHP revised]]></title>
      <guid>http://www.phpdeveloper.org/news/18541</guid>
      <link>http://www.phpdeveloper.org/news/18541</link>
      <description><![CDATA[<p>
<i>Johannes Schl&uuml;ter</i> has a recent post highlighting an <a href="http://schlueters.de/blog/archives/169-MySQL,-Memcache,-PHP-revised.html">interesting PHP extension</a> that can connect memcache with your MySQL server via PHP, the <a href="http://pecl.php.net/mysqlnd_memcache">PECL mysqlnd_memcache</a> extension.
</p>
<blockquote>
Now this blog entry is tagged a	s PHP. Hs is that coming into play? - Well, on the one side we have this fast memcache interface, which allows to access almost arbitrarry data from the database. On the other side we have our PHP mysqlnd plugin interface where we can add special features, like query caching or load balancing, transparently to any PHP application. Why not combine those two things? - Good question. That's what we have done in the <a href="http://pecl.php.net/mysqlnd_memcache">PECL mysqlnd_memcache</a> PHP extension.
</blockquote>
<p>
He includes some sample PHP code showing it in action - two examples: one using the "mysqlnd_memcache_set" method to set a memcache server on the MySQL connection and another showing two queries and how they're handled behind the scenes by this driver plugin.
</p>]]></description>
      <pubDate>Tue, 02 Oct 2012 09:27:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen: Setting up PHP & MySQL on OS X 10.8 Mountain Lion]]></title>
      <guid>http://www.phpdeveloper.org/news/18422</guid>
      <link>http://www.phpdeveloper.org/news/18422</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has posted some notes to his site helping you get <a href="http://akrabat.com/computing/setting-up-php-mysql-on-os-x-10-8-mountain-lion/">PHP set up on OSX Lion (10.8)</a> successfully.
</p>
<blockquote>
With OS X 10.8, Apple continues to ship PHP 5.3 with Xdebug, PEAR, GD and PDO_MYSQL. This is how to set it up from a clean install of 10.8.
</blockquote>
<p>
He's broken it up into a few sections including the MySQL setup, Apache configuration 
, updating the main php.ini and setting up PHPUnit ("and friends") for your testing. He also includes setup instructions for the mcrypt and the PECL <a href="http://php.net/manual/en/book.oauth.php">OAuth</a> extensions.
</p>]]></description>
      <pubDate>Thu, 30 Aug 2012 09:09:12 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Anthony Ferrara: Thoughts On PECL Frameworks]]></title>
      <guid>http://www.phpdeveloper.org/news/18408</guid>
      <link>http://www.phpdeveloper.org/news/18408</link>
      <description><![CDATA[<p>
<i>Anthony Ferrara</i> has <a href="http://blog.ircmaxell.com/2012/08/thoughts-on-pecl-frameworks.html">shared some thoughts</a> in his latest post about some of the PHP frameworks that have come up lately - ones based in <a href="http://pecl.php.net">PECL</a> extensions, not in userland code.
</p>
<blockquote>
In recent months, a number of new frameworks have cropped up for PHP as PECL extensions (Including <a href="http://code.google.com/p/yafphp/">YAF</a> and <a href="http://phalconphp.com/">PhalconPHP</a>). They promise to provide huge performance gains and lower resource usage for PHP applications. On the surface, they appear to be incredible tools for improving development. But they aren't all they are cracked up to be. In fact, I would argue that they are actually not necessary at all.
</blockquote>
<p>
He breaks the arguments down into two sections - what you gain by having the framework based in an extension (like performance) and some of the things you give up (like readability, portability and maintainability).
</p>
<blockquote>
My argument here would be that if you have a site where you can measure meaningful money savings by putting the framework into C (with taking the additional maintenance costs into account), you likely shouldn't be using a framework anyway.
</blockquote>]]></description>
      <pubDate>Mon, 27 Aug 2012 15:10:17 -0500</pubDate>
    </item>
  </channel>
</rss>
