<?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>Fri, 04 Jul 2008 22:10:21 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Jaisen Methai's Blog: Stop including class files and use __autoload() instead]]></title>
      <guid>http://www.phpdeveloper.org/news/10530</guid>
      <link>http://www.phpdeveloper.org/news/10530</link>
      <description><![CDATA[<p>
On his blog, <i>Jaisen Methai</i> <a href="http://www.jaisenmathai.com/blog/2008/06/25/stop-including-class-files-and-use-__autoload-instead/">posted about</a> a very handy feature of PHP5 - the __autoload function.
</p>
<blockquote>
It's one of the gems in PHP that I find to be relatively under used.  It's common for PHP applications to break out classes into their own files.  This becomes cumbersome when working on large projects as you wind up with numerous include/require calls for any given page. 
</blockquote>
<p>
He shows an example of its usage (loading class files dynamically from a specified directory) and mentions how it can help to make your code a lot less ugly. Comments on <a href="http://www.jaisenmathai.com/blog/2008/06/25/stop-including-class-files-and-use-__autoload-instead/">the post</a> range in topics - from comparing it to include paths, how the idea was borrowed from PEAR, and how proper naming conventions can make its use even easier.
</p>]]></description>
      <pubDate>Wed, 02 Jul 2008 11:11:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Turland's Blog: Watch Your Include Path]]></title>
      <guid>http://www.phpdeveloper.org/news/9867</guid>
      <link>http://www.phpdeveloper.org/news/9867</link>
      <description><![CDATA[<p>
<i>Matthew Turland</i> is looking to "save you some grief" by <a href="http://ishouldbecoding.com/2008/03/26/watch-your-include-path">pointing out</a> an issue he recently had trouble with and eventually found out was <a href="http://bugs.php.net/bug.php?id=43677">a bug in PHP</a>.
</p>
<blockquote>
It's pretty rare that I encounter a bug in the software I run that hampers my ability to work or my server environment's ability to function normally. However, I encountered one last week that has taken me and several Rackspace support technicians nearly a week to figure out, namely <a href="http://bugs.php.net/bug.php?id=43677">PHP bug #43677</a>.
</blockquote>
<p>
The issue was that PHP seemed to be "forgetting" the include_path in the current script (not Apache). The bug has been found in PHP 5.2.5 (and possible in all of the 5.2.x releases as well). The problem has been fixed in the latest CVS version and <a href="http://bugs.php.net/bug.php?id=43677">a patch</a> has been created for those that want to correct the problem right away.
</p>]]></description>
      <pubDate>Thu, 27 Mar 2008 10:24:38 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevX.com: Add the Graphics Power of SVG to PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/9703</guid>
      <link>http://www.phpdeveloper.org/news/9703</link>
      <description><![CDATA[<p>
In <a href="http://www.devx.com/webdev/Article/37004">this DevX tutorial</a>, <i>Octavia Anghel</i> shows how use PHP to create images based on the SVG libraries available to any browser.
</p>
<blockquote>
Scalable Vector Graphics (SVG) is an XML specification for producing vector-based graphic content that you can create, modify, and manipulate dynamically from programming languages. Here, you'll explore the most important techniques and libraries for integrating SVG with PHP to create diverse graphic contentâ€"from simple shapes to complex graphs.
</blockquote>
<p>
They show a few different ways to get the job done including a straight 'echo' call with the output, sending a converted SVG document over with a PHP header or including another (or multiple) SVG documents into another and outputting them. They also talk about tools like the phpHtmlLib library, the PEAR::XML_SVG package and the PEAR::Image_Canvas package.
</p>]]></description>
      <pubDate>Tue, 26 Feb 2008 10:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Cal Evans' Blog: set_include_path() failing]]></title>
      <guid>http://www.phpdeveloper.org/news/9636</guid>
      <link>http://www.phpdeveloper.org/news/9636</link>
      <description><![CDATA[<p>
<i>Cal Evans</i> came up against <a href="http://blog.calevans.com/2008/02/14/set_include_path-failing/">a problem</a> earlier in his development work - issues when he was trying to get his old include path.
</p>
<blockquote>
What you SHOULD get back is a string describing your old include path. If you get false, you have hit the problem I hit last night. I went so far as to recompile 2 difference versions of Apache thinking (almost correctly) that it was something that had changed in my Apache config files.
</blockquote>
<p>
If you're one of the "falsers" out there, check out <a href="http://blog.calevans.com/2008/02/14/set_include_path-failing/">the rest of his post</a> of his solution around the problem. His problem stemmed from his trying to reassign a php_admin_value (instead of php_value where the script could override it) setting, specifically the one for the include_path. 
</p>
<p>
He also points out that Zend Framework users might keep an eye out for this problem too as the Zend_Loader package changes the include path at times.
</p>]]></description>
      <pubDate>Thu, 14 Feb 2008 15:09:38 -0600</pubDate>
    </item>
  </channel>
</rss>
