<?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>Wed, 19 Jun 2013 01:05:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Evert Pot's Blog: Creating Streams from Strings in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/11859</guid>
      <link>http://www.phpdeveloper.org/news/11859</link>
      <description><![CDATA[<p>
<i>Evert Pot</i> has a <a href="http://www.rooftopsolutions.nl/article/222">quick post</a> on a handy little topic - making streams from strings with PHP (see some of it in action on <a href="http://www.phpdeveloper.org/news/11857">Davey Shafik's blog</a>).
</p>
<blockquote>
There are situations where a string instead needs to be used, and for these purposes the data: stream wrapper is used. Initially I thought it was only possible to encode the actual string in base64, which I didn't like because of the added footprint. [...] Quickly checking out the rfc, it turns out that ';base64' can be omitted to just pass along the raw data, which makes a lot more sense in the context of PHP.
</blockquote>
<p>
His example takes in an example string and pushes it back out the other side after base64 encoding and decoding it. <i>Davey Shafik</i> <a href="http://www.phpdeveloper.org/news/11857">found a use</a> for it in avoiding an <a href="http://php.net/eval">eval</a> call.
</p>]]></description>
      <pubDate>Mon, 02 Feb 2009 12:58:50 -0600</pubDate>
    </item>
  </channel>
</rss>
