<?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, 05 Jul 2008 06:09:55 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[MSBWare.com: XML to Array]]></title>
      <guid>http://www.phpdeveloper.org/news/9967</guid>
      <link>http://www.phpdeveloper.org/news/9967</link>
      <description><![CDATA[<p>
<i>Michael</i> has posted <a href="http://www.msbware.com/articles/scripts/xml_to_array.html">a simple script</a> today that takes in XML data and spits back out an array on the other side:
</p>
<blockquote>
The function takes the specified XML data (which must be in valid XML format) and converts into an array.  Any attributes in the XML elements are dropped an only the element values are placed in the array.
</blockquote>
<p>
<a href="http://www.msbware.com/articles/scripts/xml_to_array.html">The code</a> uses a combination of XPath, DOM, and regular expressions to parse the given XML content.
</p>]]></description>
      <pubDate>Mon, 14 Apr 2008 10:23:11 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rails for PHP Developers: Three New Articles Posted (Scope, Variables & RegEx)]]></title>
      <guid>http://www.phpdeveloper.org/news/9659</guid>
      <link>http://www.phpdeveloper.org/news/9659</link>
      <description><![CDATA[<p>
<i>Mike Naberezny</i> has posted a few more articles to the "Rails for PHP Developers" website (based on <a href="http://www.pragprog.com/titles/ndphpr">this book</a>) covering some more of the basics.
</p>
<p>There's three new tutorials posted:</p>
<ul>
<li><a href="http://railsforphp.com/2008/02/18/ruby-block-scope/">Ruby Block Scope</a> - the basics of Ruby block scope, a common point of confusion for PHP developers new to Ruby. 
<li><a href="http://railsforphp.com/2008/02/13/variable-arguments/">Variable Arguments</a> - an article that shows two common API patterns found in Rails, variable arguments and option hashes, and how to implement them both in PHP. 
<li><a href="http://railsforphp.com/2008/01/17/regular-expressions-in-ruby/">Regular Expressions in Ruby</a> - a useful reference that maps all of the common PHP regular expression functions to the equivalents in Ruby. 
</ul>
<p>
Check out the <a href="http://railsforphp.com/">rest of the site</a> for even more great content.
</p>]]></description>
      <pubDate>Tue, 19 Feb 2008 08:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP in Action Blog: Tips for web testing]]></title>
      <guid>http://www.phpdeveloper.org/news/9619</guid>
      <link>http://www.phpdeveloper.org/news/9619</link>
      <description><![CDATA[<p>
On the PHP in Action Blog, there's a <a href="http://www.reiersol.com/blog/index.php?op=ViewArticle&articleId=11&blogId=1">this post</a> that shares some tips for testing your web applications with some simple tests.
</p>
<blockquote>
I just started listing the techniques I've learned when writing tests to exercise the web interface of a PHP application. This is from my experience and my personal preferences; it's not the final word or necessarily right for everyone.
</blockquote>
<p>He suggests:</p>
<ul>
<li>Use SimpleTest's Web tester if you can
<li>Test the web output using regular expressions
<li>Use element IDs or names to test links, forms and fields
<li>Log HTTP requests in the application
</ul>]]></description>
      <pubDate>Wed, 13 Feb 2008 08:09:46 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Reinhold Weber's Blog: 40 signs you really are a lousy PHP programmer]]></title>
      <guid>http://www.phpdeveloper.org/news/9595</guid>
      <link>http://www.phpdeveloper.org/news/9595</link>
      <description><![CDATA[<p>
<i>Reinhold Weber</i> has put together a <a href="http://reinholdweber.com/?p=19">list of signs</a> (40 in all on his "programming list of shame") that you're a lousy PHP programmer. Here's a sampling:
</p>
<ul>
<li>don't see the need and/or benefits of a good programming IDE like Zend Studio or Eclipse PDT
<li>have never used some form of version control like Subclipse
<li>don't use a consistent methodology
<li>don't use test-driven development
<li>don't return content but echo or print it from your functions or classes
<li>return HTML, not data, strings, or objects.
<li>don't allow intelligent error handling
<li>you think reusable software equals/requires your code to be OOP
</ul>
<p>
Now granted, some of them are a bit more high level than others, but if you're not headed towards a lot of these, you might change paths, hop out of that comfort zone and branch out into the community and the language a little bit more.
</p>]]></description>
      <pubDate>Fri, 08 Feb 2008 15:23:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Tokenization using regular expression sub patterns]]></title>
      <guid>http://www.phpdeveloper.org/news/9449</guid>
      <link>http://www.phpdeveloper.org/news/9449</link>
      <description><![CDATA[<p>
On the SitePoint PHP blog there's a <a href="http://www.sitepoint.com/blogs/2008/01/19/tokenization-using-regular-expression-sub-patterns/">new post</a> from <i>Harry Fuecks</i> talking about a replacement method using token that works a bit better than the typical regular expression method.
</p>
<blockquote>
Promtped by a real world example, one often-overlooked feature of most regular expressions engines is how subpatterns can useful to whip up tokenizers relatively easily. The problem? I needed to match the word any of the words "Canton", "Region" or "Group" in a string and perform a follow up action depending on which matched.
</blockquote>
<p>
His ultimate solution used a set of preg_match generated tokens to do the replaces a bit more reliably. It also makes it easy for other scripts (like his Python example) to use them too.
</p>]]></description>
      <pubDate>Fri, 18 Jan 2008 11:15:49 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sean Coates' Blog: PHP Pie?]]></title>
      <guid>http://www.phpdeveloper.org/news/7298</guid>
      <link>http://www.phpdeveloper.org/news/7298</link>
      <description><![CDATA[<p>
<i>Sean Coates</i> has <a href="http://blog.phpdoc.info/archives/57-PHP-Pie.html">created a simple version</a> of a popular bit of Perl functionality and shares the code in hi slatest post - the "pie" ability to perform a search and replace, line by line, through a file using a regular expression.
</p>
<blockquote>
I've often found myself looking for a PHP equivalent. Not to do simple substitutions, of course, but complex ones. And since I'm most comfortable with PHP, and a I have a huge library of snippets that I can dig out to quell a problem that I may have solved years ago, I've been meaning to fill this void for a while.
</blockquote>
<p>
So, one evening, he came home and hashed out <a href="http://blog.phpdoc.info/archives/57-PHP-Pie.html">this version</a> of the script. He includes the code in the post...it works on the command line and pulls in a file (though STDIN) and loops through the buffered version to perform the regex replace.
</p>]]></description>
      <pubDate>Mon, 19 Feb 2007 08:20:00 -0600</pubDate>
    </item>
  </channel>
</rss>
