<?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, 24 May 2013 13:10:05 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Community News: PHP Manual Masterpieces (Humor)]]></title>
      <guid>http://www.phpdeveloper.org/news/18613</guid>
      <link>http://www.phpdeveloper.org/news/18613</link>
      <description><![CDATA[<p>
A new blog has started up that mentions some of the "masterpieces" that occur in the PHP manual - <a href="http://phpmanualmasterpieces.tumblr.com/">phpmanualmasterpieces.tumblr.com</a>:
</p>
<blockquote>
Sparkling gems found in the official PHP documentation, mostly in the user-submitted comments. Not meant to pick on anyone, just to serve as a source of wonderment. 
</blockquote>
<p>There's already several posts to the blog including:</p>
<ul>
<li><a href="http://phpmanualmasterpieces.tumblr.com/post/32987674597/heres-my-int-so-cast-it-maybe">Here's my int, so cast it maybe</a>
<li><a href="http://phpmanualmasterpieces.tumblr.com/post/33035925694/two-quotes-that-make-me-sad">Two quotes that make me sad</a>
<li><a href="http://phpmanualmasterpieces.tumblr.com/post/33051383652/twos-complewhat">Two's Complewhat</a>
<li><a href="http://phpmanualmasterpieces.tumblr.com/post/33091353115/the-documentation-clearly-says-raptors">The documentation clearly says raptors</a>
</ul>
<p>
You can <a href="http://phpmanualmasterpieces.tumblr.com/rss">subscribe to their RSS feed</a> if you'd like to keep up.
</p>]]></description>
      <pubDate>Tue, 16 Oct 2012 10:10:52 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Working Software Blog: Escaping single and double quotes for use with XPath queries in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16746</guid>
      <link>http://www.phpdeveloper.org/news/16746</link>
      <description><![CDATA[<p>
On the Working Software blog there's a new post showing a solution to a issue with <a href="http://www.workingsoftware.com.au/page/Escaping_single_and_double_quotes_in_XPath_queries_in_PHP">escaping quotes in XPath queries</a> that's not just an issue in PHP.
</p>
<blockquote>
I've been working with the Basecamp API to plugin our IRC bot that we use for time tracking and I'm astounded to learn that escaping single and/or double quotes for XPath queries in PHP does not have a well documented, best practices solution. In fact, it seems as though this is not peculiar to PHP. I took a look around and found this excellent article by "Kushal": <a href="http://kushalm.com/the-perils-of-xpath-expressions-specifically-escaping-quotes">http://kushalm.com/the-perils-of-xpath-expressions-specifically-escaping-quotes</a>.
</blockquote>
<p>
He's put together <a href="https://gist.github.com/1155973">his own (PHP) solution</a> to the problem - running the entire XPath query through a filtering method that splits it up, replaces the quote characters and combines it back down to a single string.
</p>]]></description>
      <pubDate>Fri, 19 Aug 2011 13:50:14 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Six Cool PHP Tricks You May Not Know]]></title>
      <guid>http://www.phpdeveloper.org/news/14398</guid>
      <link>http://www.phpdeveloper.org/news/14398</link>
      <description><![CDATA[<p>
On PHPBuilder.com there's a new article with a few things - <a href="http://www.phpbuilder.com/columns/chrisroane042210.php3">six things, to be exact</a> - that you might not know about the PHP language as written up by <i>Chris Roane</i>.
</p>
<blockquote>
Over the years I've come across some useful tricks in PHP that are not obvious, but are worth mentioning. This is not meant to be a comprehensive list of all the useful tricks that you can do with PHP.
</blockquote>
<p>The list of six includes:</p>
<ul>
<li>Count Characters in a String
<li>Use Single Quotes When Possible
<li>Use Arrays in Form Fields
<li>PHP Output Buffering
</ul>]]></description>
      <pubDate>Fri, 23 Apr 2010 08:44:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: The ABC's of PHP Part 5 - Strings & Text ]]></title>
      <guid>http://www.phpdeveloper.org/news/12355</guid>
      <link>http://www.phpdeveloper.org/news/12355</link>
      <description><![CDATA[<p>
PHPBuilder.com has <a href="http://www.phpbuilder.com/columns/peter_shaw04152009.php3">the latest in their series</a> looking at beginner level PHP and some of the core concepts that go with it ("The ABC's of PHP"). This latest tutorial looks at string and text handling.
</p>
<blockquote>
In the last part of this series we looked at what a variable was in general. Today we'll be covering strings and text. We'll look at the contents those variables would typically hold. 
</blockquote>
<p>
Topics include the differences between single and double quotes, appending to a string and special characters (like line feeds and tabs). Code snippets are provided for each to help you visualize what they mean.
</p>]]></description>
      <pubDate>Thu, 16 Apr 2009 09:31:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Hooks in Action Helpers]]></title>
      <guid>http://www.phpdeveloper.org/news/11348</guid>
      <link>http://www.phpdeveloper.org/news/11348</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has <a href="http://akrabat.com/2008/11/05/hooks-in-action-helpers/">posted this look</a> at using hooks inside of action helpers (a follow-up from his <a href="http://akrabat.com/2008/10/31/using-action-helpers-in-zend-framework/">previous article</a> on action helpers):
</p>
<blockquote>
Hooks are a feature of action helpers that allow you to automatically run code at certain points in the dispatch cycle. Specially, there are two hook functions available for action helpers: preDispatch and postDispatch. These allow you to ensure that some functionality is always run for each request.
</blockquote>
<p>
He creates a simple action helper that grabs a random quote from an array and drops it into a property of the helper. By defining a preDispatch method inside of the helper, the HelperBroker knows to pull the method in an execute it immediate before the rest of the actions are executed. A calls to addHelper with the hooks defined is all it takes to glue it together with the execution.
</p>]]></description>
      <pubDate>Wed, 05 Nov 2008 09:34:40 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Evan Sims' Blog: TwitterBash launches]]></title>
      <guid>http://www.phpdeveloper.org/news/10452</guid>
      <link>http://www.phpdeveloper.org/news/10452</link>
      <description><![CDATA[<p>
<i>Evan Sims</i> has <A href="http://feeds.feedburner.com/~r/evansims/~3/315985616/twitterbash-launches">posted about</a> the launch of a <a href="http://www.codeigniter.org">CodeIgniter</a>-driven application that brings the bash.org quoting abilities to the world of Twitter.
</p>
<blockquote>
Today marks the launch of <a href="http://twitterbash.com/">TwitterBash</a>, a concept conceived and design by my good friend <a href="http://judsoncollier.com/">Judson Collier</a>. [...] TwitterBash takes the concept of the long Internet-famous <a href="http://bash.org/">bash.org</a>, which allows folks to post snippets and quote conversations from IRC, and applies it to Twitter. Just sign up for an account, then head to the submit page. Pop in the permalink for a tweet you want to quote and you're done. 
</blockquote>
<p>
<a href="http://twitterbash.com/">The site</a> runs on the PHP5 CodeIgniter framework allowing for fast and easy development. There's already a pretty good amount of content, so go over and check it out (and <a href="http://twitterbash.com/login">submit</a> some of your own).
</p>]]></description>
      <pubDate>Fri, 20 Jun 2008 11:25:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Christopher Jones' Blog: PHP 5.3 "NOWDOCS" make SQL escaping easier]]></title>
      <guid>http://www.phpdeveloper.org/news/9633</guid>
      <link>http://www.phpdeveloper.org/news/9633</link>
      <description><![CDATA[<p>
<i>Christopher Jones</i> has <a href="http://blogs.oracle.com/opal/2008/02/13#a269">posted about</a> an update to the development for PHP 5.3 that makes escaping SQL even easier in scripts - NOWDOCS.
</p>
<blockquote>
Escaping quotes or other meta characters in SQL can be painful unless you get lucky with your quoting style. [...] Even with PHP's "Heredoc" syntax something will need escaping, but with PHP 5.3's new "Nowdoc" syntax no escaping is needed.
</blockquote>
<p>
The only difference between HEREDOC and NOWDOC is that the initial keyword (like the first END in this statement: <<<'END' text here END;) that can make worrying about complex quoting rules a thing of the past.
</p>]]></description>
      <pubDate>Thu, 14 Feb 2008 11:18:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Gareth Heyes' Blog: htmlentities is badly designed]]></title>
      <guid>http://www.phpdeveloper.org/news/9113</guid>
      <link>http://www.phpdeveloper.org/news/9113</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has a <a href="http://www.thespanner.co.uk/2007/11/26/htmlentities-is-badly-designed/">quick new post</a> to his blog today about the use of <a href="http://php.net/htmlentities">htmlentities</a> and the false assumptions some developers have about it:
</p>
<blockquote>
When someone uses htmlentities I've seen it time and time again that they expect that it filters variables from all XSS. This is wrong of course because the function requires a second parameter ENT_QUOTES which correctly replaces quote characters. Some developers aren't even aware that quotes can lead to XSS injection.
</blockquote>
<p>
He reminds developers of the second parameter - the ENT_QUOTES parameter that correctly replaces quotes. Other people have mentions things in the comments as well like another optional parameter to force an encoding type and opinions about the function's use.
</p>]]></description>
      <pubDate>Mon, 26 Nov 2007 10:23:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Terry Chay's Blog: Ed Finkler agrees with me]]></title>
      <guid>http://www.phpdeveloper.org/news/7747</guid>
      <link>http://www.phpdeveloper.org/news/7747</link>
      <description><![CDATA[<p>
<i>Terry Chay</i> has some of <a href="http://terrychay.com/blog/article/ed-finkler-agrees-with-me.shtml">his own comments</a> surrounding the latest <a href="http://podcast.phparch.com/main/index.php/main">episode of the Pro::PHP Podcast</a>, an interview with <i>Ed Finkler</i> about the state of PHP security.
</p>
<blockquote>
Ed Finkler agrees with me. Thanks Ed. :-) <a href="http://podcast.phparch.com/main/index.php/episodes:20070426">Listen to the podcast</a>. It's a realistic assessment of the state of security in PHP.
</blockquote>
<p>
He also includes a favorite quote from the podcast (as said by <i>Ed</i>):
</p>
<blockquote>
If web developer doesn't understand common security issues they shouldn't be considered developers...[Web applications] essentially are dealing with data that someone is inputting there. As a developer of web applications, you are essentially stewards of that data.
</blockquote>]]></description>
      <pubDate>Tue, 01 May 2007 12:38:00 -0500</pubDate>
    </item>
  </channel>
</rss>
