<?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 09:19:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Nicolas Grekas (on Github): Improved handling of HTTP requests in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16484</guid>
      <link>http://www.phpdeveloper.org/news/16484</link>
      <description><![CDATA[<p>
As <i>Nicolas Grekas</i> shows in <a href="https://gist.github.com/1028251">this tutorial</a> (posted as a gist), the functionality that PHP gives users to work with the raw HTTP requests is pretty limited. There's a few solutions he offers, but none of them allow for the full use of the HTTP options provided by the server.
</p>
<blockquote>
HP offers comprehensive autoglobals to access external data sent with each request. These variables do not expose all the possibilities allowed by the HTTP protocol, but a controlled use can in practice minimize the impact of this limitation. Two problems are particularly troublesome: the lack of access to multi-valued keys without using a special syntax and complexity of the magic bracketed syntax. Until PHP natively provides another interface freed from these problems, a different interface in user space can circumvent them.
</blockquote>
<p>
He gives some code examples of methods that can be used to parse strings like those found in cookies (or pulled in via php://stdin) including mentions of key normalization and accessing the values by literal keys. You can see a more full implementation <a href="https://gist.github.com/1027180#file_gistfile2.php">here</a>.
</p>]]></description>
      <pubDate>Fri, 17 Jun 2011 09:39:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jani Hartikainen's Blog: Improved PDF generation with RE Framework RE_Pdf]]></title>
      <guid>http://www.phpdeveloper.org/news/12193</guid>
      <link>http://www.phpdeveloper.org/news/12193</link>
      <description><![CDATA[<p>
<i>Jani Hartikainen</i> has <a href="http://codeutopia.net/blog/2009/03/20/improved-pdf-generation-with-re-framework-re_pdf/">made a recent post</a> about a library that can manage PDF generation a bit better than the Zend_PDF component of the Zend Framework - RE_PDF.
</p>
<blockquote>
Zend_Pdf, while generally quite good, has one big issue: It does not support word wrapping text! There's a new and still a bit obscure framework called <a href="http://www.refw.org/">RE Framework</a>, which has an excellent PDF component - it includes support for word wrapping, better support for PDF templates, image loading etc.
</blockquote>
<p>
The several of the interfaces (method calls) are similar between Zend_Pdf and RE_Pdf, so there's not too much rewriting involved if you're already using Zend's option. He shows how to parse an XML file, plug those values, the fonts and fields, in the PDF object then flesh it out with a presentation layer and information to fill in the blanks.
</p>]]></description>
      <pubDate>Tue, 24 Mar 2009 08:42:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nefarious Designs: Object-Oriented PHP Part 4: PHP5's Improved Features]]></title>
      <guid>http://www.phpdeveloper.org/news/6183</guid>
      <link>http://www.phpdeveloper.org/news/6183</link>
      <description><![CDATA[<p>
Nefarious Designs continues their object-oriented PHP series with <a href="http://nefariousdesigns.co.uk/archive/2006/08/object-oriented-php-part-4-php5%e2%80%99s-improved-features/">part four</a> posted today, a look at some of the new features that PHP5 brings to the table.
</p>
<blockquote>
<p>
After a welcome break, over the late summer public holiday here in England, here's the final part in my object-oriented PHP series. Sorry about the rather extended pause since "<a href="http://nefariousdesigns.co.uk/archive/2006/08/object-oriented-php-part-3-taking-relationships-further/">Part 3: Taking Relationships Further</a>".
</p>
<p>
Having already looked at definition, relationships and taking those relationships further, I'm going to look at how PHP5's new Object Model introduces more advanced functionality.
</p>
</blockquote>
<p>
In <a href="http://nefariousdesigns.co.uk/archive/2006/08/object-oriented-php-part-4-php5%e2%80%99s-improved-features/">this latest part</a> they look at clas constants, abstract classes, object interfaces, and magic methods (including overloading).
</p>]]></description>
      <pubDate>Thu, 31 Aug 2006 10:29:29 -0500</pubDate>
    </item>
  </channel>
</rss>
