<?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>Tue, 21 May 2013 04:48:06 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: Inserting Comments and Accessing Nodes with the DOM XML Extension in PHP 5]]></title>
      <guid>http://www.phpdeveloper.org/news/9779</guid>
      <link>http://www.phpdeveloper.org/news/9779</link>
      <description><![CDATA[<p>
DevShed continues their series looking at using the DOM extension in PHP5 to work with XML in your application. They've already looked at adding attributes and creating CDATA information in a new DOM document. <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/">This time</a> they build on that and also include new methods - appending comment nodes and getting at XML nodes by their IDs.
</p>
<blockquote>
I'm talking about the DOM XML extension, which allows you to handle XML documents by using the DOM API. Thus, if you're interested in learning how to put this extension to work for you quickly, look no further, because you've come to the right place. [...] In this third installment of the series, I'll be teaching you specifically how to append comment nodes to a given XML string and how to extract certain elements via their IDs.
</blockquote>
<p>
They <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/1/">review</a> the method to add attributes and CDATA to an XML document first. Then they cover the other two new topics - <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/2/">appending comment nodes</a> and grabbing nodes <a href="http://www.devshed.com/c/a/PHP/Inserting-Comments-and-Accessing-Nodes-with-the-DOM-XML-Extension-in-PHP-5/3/">by their ID attribute</a>.
</p>]]></description>
      <pubDate>Tue, 11 Mar 2008 15:40:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Graham Bird's Blog: Extra-pretty URLs with slugs]]></title>
      <guid>http://www.phpdeveloper.org/news/5648</guid>
      <link>http://www.phpdeveloper.org/news/5648</link>
      <description><![CDATA[<p>
As the <a href="http://cakephp.org/">CakePHP framework</a> grows in popularity, more and more tutorials are show up for it, including <a href="http://www.grahambird.co.uk/cake/tutorials/slugs.php">this quick and handy one</a> from <i>Graham Bird</i>. In it, he explains the use of "slugs" instead of IDs to make URLs simpler to use and remember.
</p>
<blockquote>
<p>
In this tutorial you will learn how to use words rather than IDs in your Cake URLs. These words are known as "slugs" in Wordpress so I decided to call them slugs too.
</p>
<p>
Cake's normal URLs look like this: www.example.com/stories/read/123245221<br/>
and we are going to make them look like this: www.example.com/stories/read/sleepingbeauty
</p>
</blockquote>
<p>
Thanks to the simplicity of the framework, <a href="http://www.grahambird.co.uk/cake/tutorials/slugs.php">the tutorial</a> is pretty short, using one of CakePHP's "magic functions" to help cross-match the slug given with a table in the database with a slug/title relationship. There's not much code to it and he <a href="http://demo.grahambird.co.uk/stories">provides a demo</a. if you'd like to check it out first.
</p>]]></description>
      <pubDate>Wed, 21 Jun 2006 12:45:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[VoucherTrader.co.uk Blog: A Further Problem With PHP Session IDs and Google]]></title>
      <guid>http://www.phpdeveloper.org/news/4651</guid>
      <link>http://www.phpdeveloper.org/news/4651</link>
      <description><![CDATA[On vouchertrader.co.uk today, there's <a href="http://www.vouchertrader.co.uk/blog/2006/01/11/a-further-problem-with-php-session-ids-and-google/">this look</a> at some more issues that can be caused by session IDs with the indexing that Google performs.
<p>
<quote>
<i>
While search for the VoucherTrader site in Google I noticed that the description for some pages was coming up as a PHP error about sessions. I actually thought I'd fixed this problem before by preventing PHP from creating sessions when the browsing user's user agent was the Googlebot. Unfortunately I was wrong...
</i>
</quote>
<p>
Come to find out, he <a href="http://www.vouchertrader.co.uk/blog/2006/01/11/a-further-problem-with-php-session-ids-and-google/">figured out</a> that, at the time the GoogleBot was coming through, the PHP install wasn't making a session for it. For a fix, he threw in a check to ensure that the user, based on the HTTP_USER_AGENT value, would start the session  correctly. The code is <a href="http://www.vouchertrader.co.uk/blog/2006/01/11/a-further-problem-with-php-session-ids-and-google/">included in the post</a>...]]></description>
      <pubDate>Thu, 12 Jan 2006 06:48:32 -0600</pubDate>
    </item>
  </channel>
</rss>
