<?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, 22 Nov 2008 02:57:19 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Solar Blog: Adapter for Master/Slave MySQL Setups]]></title>
      <guid>http://www.phpdeveloper.org/news/11144</guid>
      <link>http://www.phpdeveloper.org/news/11144</link>
      <description><![CDATA[<p>
On the Solar blog <i>Paul Jones</i> has <a href="http://solarphp.com/blog/read/19-adapter-for-master-slave-my-sql-setups">posted about</a> a new database adapter they included in the latest <a href="http://solarphp.com/blog/read/3">Solar framework</a> release - one that lets you connect to master/slave MySQL setups.
</p>
<blockquote>
With Solar, you connect to SQL databases using the Solar_Sql factory class, which returns a Solar_Sql_Adapter class for you. Most developers only need to connect to a single MySQL server. [...] However, when you get into a situation where you need to scale up, you might need a replicated MySQL database setup. In such cases, there is one "master" server that handles reads and writes, and there are one or more "slave" servers that are read-only. 
</blockquote>
<p>
The <a href="http://solarphp.com/class/Solar_Sql_Adapter_MysqlReplicated">Solar_Sql_Adapter_MysqlReplicated</a> adapter does all of the switching for you, making it as simple as dropping it in and changing your configuration to point to the master and slave servers (examples included).
</p>]]></description>
      <pubDate>Fri, 03 Oct 2008 14:35:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Solar Blog: Using registry_set to auto-register objects]]></title>
      <guid>http://www.phpdeveloper.org/news/11065</guid>
      <link>http://www.phpdeveloper.org/news/11065</link>
      <description><![CDATA[<p>
In <a href="http://solarphp.com/blog/read/8-using-registry-set-to-auto-register-objects">this recent post</a> from the Solar blog, <i>anttih</i> shows how to use the Solar registry to automatically load and register objects when it starts up.
</p>
<blockquote>
<a href="http://solarphp.com/class/Solar_Registry">Solar_Registry</a> is a class for storing singleton objects which are used usually for things like SQL objects and the response and request objects. Now what's interesting, is that in the new version of Solar a new configuration key registry_set was added for the <a href="http://solarphp.com/class/Solar">Solar</a> arch-class. You can use it to tell Solar to automatically add objects to the registry when it starts up.
</blockquote>
<p>
He compares the two methods - manual loading and the automatic version and includes a "real world" example of loading up an SMTP object.
</p>]]></description>
      <pubDate>Tue, 23 Sep 2008 08:47:36 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Johannes Schluter's Blog: I have nothing to say - but maybe PHP...]]></title>
      <guid>http://www.phpdeveloper.org/news/10911</guid>
      <link>http://www.phpdeveloper.org/news/10911</link>
      <description><![CDATA[<p>
<i>Johannes Schluter</i> has posted about an <a href="http://schlueters.de/blog/archives/80-I-have-nothing-to-say-but-maybe-PHP....html">interesting little project</a> he's worked up to find his own path to usefulness in <a href="http://www.twitter.com">Twitter</a> - a PHP extension that tweets bugs to his account.
</p>
<blockquote>
The other thing I see there are people telling me what errors in their applications they are currently fixing. I can't see why that's interesting. But as people seem to be interested I found out that I have stuff to say, too, or better my PHP has, since sometimes I have errors there, too. But well, I'm lazy so I don't want to "twitter" them myself.
</blockquote>
<p>
His <a href="http://schlueters.de/blog/uploads/twittererror-0.1.tgz">"little PHP extension"</a> that automatically sends the reported error out to the designated account. Of course, it tends to slow things down (connection to a remote machine and all) but it could be useful for sending an SMS is something pops up.
</p>]]></description>
      <pubDate>Wed, 27 Aug 2008 12:58:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Developer Tutorials Blog: Building Web 2.0 Tag Clouds in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10100</guid>
      <link>http://www.phpdeveloper.org/news/10100</link>
      <description><![CDATA[<p>
The Developer Tutorials blog has posted <a href="http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/">a tutorial</a> showing you how to set up a tag cloud for your site:
</p>
<blockquote>
Every major website seems to have a tag cloud. Users love tag clouds; they help navigate masses of content quickly and easily. [...] How do we actually build a tag cloud at application level? In this tutorial, I'll take you through putting together a full-blown, calculated web 2.0 tag cloud in PHP.
</blockquote>
<p>
They <a href="http://www.developertutorials.com/blog/php/building-web-2-0-tag-clouds-in-php-165/">start</a> at the end, with an example cloud with some sample tags ("php" being the largest, of course). The code for it is pretty simple - it looks at an array of counts, the number of times the tag is used, and builds the links with the correct font size automatically. 
</p>]]></description>
      <pubDate>Fri, 02 May 2008 13:15:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Development Blog: Tutorial: Create a zip file from folders on the fly]]></title>
      <guid>http://www.phpdeveloper.org/news/8748</guid>
      <link>http://www.phpdeveloper.org/news/8748</link>
      <description><![CDATA[<p>
On the Web Development Blog, there's <a href="http://www.web-development-blog.com/archives/tutorial-create-a-zip-file-from-folders-on-the-fly/">a quick tutorial</a> on creating dynamic zip files via a helpful little class:
</p>
<blockquote>
For a future project I needed these days some easy to use zip or gzip class to create a zip file from files / folders inside a specified directory. [...] I tested two [other] scripts before and must say that this script works great for single files if you add them manually. To compress a whole directory with an unknown number of files into one zip file I created some class extension to get this job done.
</blockquote>
<p>
In <a href="http://www.web-development-blog.com/archives/tutorial-create-a-zip-file-from-folders-on-the-fly/">his class</a>, the get_file_from_folder method is called with the directory and the file to load them into. This loops through the files, pulling them all (directories and all) into the new zip file. An example of the class' use is also included. 
</p>]]></description>
      <pubDate>Fri, 28 Sep 2007 10:24:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[devthatweb: Automate the deployment of any PHP project using Capistrano]]></title>
      <guid>http://www.phpdeveloper.org/news/7990</guid>
      <link>http://www.phpdeveloper.org/news/7990</link>
      <description><![CDATA[<p>
On the devthatweb blog, there's <a href="http://devthatweb.com/view/automate-the-deployment-of-any-php-project-using-capistrano">a new post</a> from <i>Pat Nakajima</i> with a recipe for deploying a PHP application with the help of <a href="http://manuals.rubyonrails.com/read/chapter/97#page256">Capistrano</a> (the Ruby on Rails tools for deploying web applications).
</p>
<blockquote>
Recently though, I was working on a PHP project, and I decided that the time had come to rewrite my Mint recipe to allow deployment of any PHP project, totally independent of Rails. I set to work, and I'm happy to share the result.
</blockquote>
<p>
The example makes it a simple matter of using the command "cap deploy:php" to use <a href="http://devthatweb.com/view/automate-the-deployment-of-any-php-project-using-capistrano">the recipe</a> and push out your PHP application.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2007 13:14:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ben Ramsey's Blog: NY Thoughts and Zend_View_Helper Notes]]></title>
      <guid>http://www.phpdeveloper.org/news/7598</guid>
      <link>http://www.phpdeveloper.org/news/7598</link>
      <description><![CDATA[<p>
In a <a href="http://benramsey.com/archives/ny-thoughts-and-zend_view_helper-notes/">new post today</a>, <i>Ben Ramsey</i> continues on from some <a href="http://www.phpdeveloper.org/news/7565">previous thoughts</a> on a different sort of method for using the Views in the Zend Framework. This time, he focuses on a more automated way implement them in the same way.
</p>
<blockquote>
Just as views can be automated'"that is, you don't have to instantiate a Zend_View object; the controller does it all for you when you call $this->render() from any controller action'"you do not have to explicitly tell Zend_View where your helpers reside, <a href="http://framework.zend.com/manual/en/zend.view.helpers.html">as the manual suggests</a>. Instead, place your helpers in a special "helpers" folder where the Zend_Controller_Action's initView() can find them.
</blockquote>
<p>
He includes how the directory structure would be altered (the addition of the helpers folder) and how to name the helpers so they can be used in an application (Zend_View_Helper_*). Also, check out the post for some of his interesting thoughts on a recent visit of his to New York City.
</p>]]></description>
      <pubDate>Wed, 11 Apr 2007 07:41:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Alexander Netkachev's Blog: Automatic testing of MVC applications created with Zend Framework]]></title>
      <guid>http://www.phpdeveloper.org/news/7467</guid>
      <link>http://www.phpdeveloper.org/news/7467</link>
      <description><![CDATA[<p>
In a <a href="http://www.alexatnet.com/blog/2/2007/03/20/automatic-testing-of-mvc-applications-created-with-zend-framework">new blog entry</a>, <i>Alexander Netkachev</i> writes about his experiences with the automatic testing of applications developed with the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
This article contains information on how to improve your application stability by controlling how the changes affect the Model-View-Controller Zend Framework application. As a result, you will be able to deliver better software to your customers and reduce the time needed for testing of the software.
</blockquote>
<p>
He <a href="http://www.alexatnet.com/blog/2/2007/03/20/automatic-testing-of-mvc-applications-created-with-zend-framework">breaks the post</a> out into several different sections:
<ul>
<li>Testing should be automatic
<li>Program tests program
<li>MVC improves testability
<li>MVC application creating is easy with Zend Framework
<li>Select and modify data to test Model
<li>View is simple but unsteady
<li>Testing View includes testing Ajax
<li>Use cases show how to test Controller
</ul>
before getting down to an example. His example shows hos to test the part of an application that handles the new user registrations/logins. The setup is pretty simple - a user table with a UsersController - and  the corresponding model and views to go with it. He chooses PHPUnit to perform the testing and gives all the code you'll need to reproduce the example, including the SQL and the testing scripts (and the output you should recieve by running them).
</p>]]></description>
      <pubDate>Wed, 21 Mar 2007 07:43:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Automatic Tag Clouds for Every Site]]></title>
      <guid>http://www.phpdeveloper.org/news/7063</guid>
      <link>http://www.phpdeveloper.org/news/7063</link>
      <description><![CDATA[<p>
The Zend Developer Zone has <a href="http://devzone.zend.com/node/view/id/1530">a new post</a> referencing one of the featured classes from the PHPClasses.org website - one that can create an automatic tag cloud for just about any site out there.
</p>
<blockquote>
But how can you build a tag cloud for a site that did not have any kind of content tagging or categorization? This is a problem that can be solved by the <a href="http://www.phpclasses.org/autokeyword">Automatic Keyword Generator</a> class written by <a href="http://www.phpclasses.org/browse/author/270419.html">Ver Pangonilo</a> from the Philippines.
</blockquote>
<p>
The <a href="http://devzone.zend.com/node/view/id/1530">ZDZ post</a> includes an example of the class' usage - a pretty simple example of how it parses a string of data and, using a set of rules, parses through it to create the tags for the information.
</p>]]></description>
      <pubDate>Tue, 09 Jan 2007 14:16:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brett Bieber's Blog: Chiara_PEAR_Server Release Droplet for Mac OS X]]></title>
      <guid>http://www.phpdeveloper.org/news/6977</guid>
      <link>http://www.phpdeveloper.org/news/6977</link>
      <description><![CDATA[<p>
As <i>Brett Bieber</i> mentions in <a href="http://saltybeagle.com/?section=article&id=77">this new blog entry</a>, there's been an OS X release of the Chiara_PEAR_Server package (a "droplet").
</p>
<blockquote>
This is a Mac OS X droplet for PEAR developers that run Chiara_PEAR_Server. This little droplet just takes in your PEAR Package .tgz and it will release it to Chiara_PEAR_Server.
</blockquote>
<p>
He idea of <a href="http://saltybeagle.com/?section=article&id=77">the droplet</a> is to automate the packaging process for a tgz file to post it out to a PEAR channel server. Sounds quite handy - check it out for yourself by grabbing the source from <a href="svn.saltybeagle.com">svn.saltybeagle.com</a>.
</p>]]></description>
      <pubDate>Wed, 27 Dec 2006 14:30:54 -0600</pubDate>
    </item>
  </channel>
</rss>
