<?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, 25 May 2013 09:27:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: 3 Ways to Access a Namespaced PHP Class]]></title>
      <guid>http://www.phpdeveloper.org/news/15507</guid>
      <link>http://www.phpdeveloper.org/news/15507</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has posted <a href="http://www.lornajane.net/posts/2010/3-Ways-to-Access-a-Namespaced-PHP-Class">three different ways</a> you can use to get access to a namespaced class in a PHP 5.3 application, all useful depending on where you are in the application and your needs.
</p>
<blockquote>
After what felt like years of debate over the notation to use for PHP's namespaces, it seems like the feature itself has had relatively little use or attention since it was actually implemented in PHP 5.3. We're all used to working without it but using it does make code neater.
</blockquote>
<p>Her three options are:</p>
<ul>
<li>Refer Namespace and Class Name
<li>Import the Namespace
<li>Alias the Namespace and/or Class
</ul>
<p>
You can find out more about namespaces in PHP applications on <a href="http://php.net/namespace">the PHP manual</a>.
</p>]]></description>
      <pubDate>Mon, 29 Nov 2010 12:49:36 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: How to Use PHP Namespaces (Parts 2 &3)]]></title>
      <guid>http://www.phpdeveloper.org/news/12873</guid>
      <link>http://www.phpdeveloper.org/news/12873</link>
      <description><![CDATA[<p>
The SitePoint PHP blog has posted the next two parts of their series looking at using namespaces in PHP - parts 2 and 3:
</p>
<p>
In <a href="http://www.sitepoint.com/blogs/2009/07/14/php-namespaces-import-alias-resolution/">the second part</a> of the series they build on <a href="http://www.phpdeveloper.org/news/12861">the basics</a> and look at importing namespaces into a script, aliasing them to a shorter, easier to use name and some rules to consider about name resolution.
</p>
<p>
The <a href="http://www.sitepoint.com/blogs/2009/07/15/how-to-use-php-namespaces-part-3-keywords-and-autoloading/">third part</a> of the series (the last part) looks at the keywords the namespace functionality uses and how to autoload namespaced classes to keep their namespacing intact.
</p>]]></description>
      <pubDate>Wed, 15 Jul 2009 08:16:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Till Klampaeckel's Blog: How to setup multiple stores on different domains with Magento]]></title>
      <guid>http://www.phpdeveloper.org/news/12428</guid>
      <link>http://www.phpdeveloper.org/news/12428</link>
      <description><![CDATA[<p>
On Till Klampaeckel's blog <a href="http://till.klampaeckel.de/blog/archives/27-How-to-setup-multiple-stores-on-different-domains-with-Magento.html">this recent post</a> shows you how to (quick and easy) set up multiple Magento stores on different domains with the same codebase.
</p>
<blockquote>
Multiple stores is probably the killer feature of the Magento Commerce store. It enables the needy to manage multiple stores through a single interface. Your very own mall in a box. It's also a management/deployment <strike>nightmare</strike>dream come true. A single piece of software powering multiple websites.
</blockquote>
<p>
He sets up his directory structure and shows how to alias certain directories to ones in the local document root so that the application will find things correctly. Drop in a custom index.php "bootstrap" file to run the application and you should be all set.
</p>]]></description>
      <pubDate>Wed, 29 Apr 2009 12:05:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ben Ramsey's Blog: Lampooning Benchmarks]]></title>
      <guid>http://www.phpdeveloper.org/news/8742</guid>
      <link>http://www.phpdeveloper.org/news/8742</link>
      <description><![CDATA[<p>
In response to <a href="http://www.phpdeveloper.org/news/8725">this previous post</a>, <i>Ben Ramsey</i> has <a href="http://benramsey.com/archives/lampooning-benchmarks/">relayed some of this thoughts</a> on the benchmarks that were done by <i>Jonathan Street</i> comparing functions and their aliases:
</p>
<blockquote>
Mmy first reaction was something like: "Egads! These benchmarks are stupid and misleading! These functions are simply aliases of each other. There should be no discernible difference, and any buffoon should realize this fallacy!" This was before I clicked through from PHPDeveloper.org to read his post.
</blockquote>
<p>
After reading his data and going on to the <a href="http://torrentialwebdev.com/blog/archives/118-Better-Benchmarks.html">Better Benchmarks</a> post that followed it, he found that most of the results of additional testing came out negligible and that there was almost no difference between the two. 
</p>
<p>
<i>Ben</i> illustrates the proof of this with a few lines pasted from the "ext/standard/basic_functions.c" in PHP's source showing that the code is shared via a PHP_FALIAS function call.
</p>]]></description>
      <pubDate>Thu, 27 Sep 2007 13:42:00 -0500</pubDate>
    </item>
  </channel>
</rss>
