<?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, 06 Jan 2009 01:58:07 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NETTUTS.com: Context Includes]]></title>
      <guid>http://www.phpdeveloper.org/news/11216</guid>
      <link>http://www.phpdeveloper.org/news/11216</link>
      <description><![CDATA[<p>
The NETTUTS blog has another <a href="http://nettuts.com/working-with-cmss/context-includes/">WordPress-related post</a> today that looks at "context includes" - changing the look and feel of the postings based on the content type they're tagged with.
</p>
<blockquote>
The great thing about WordPress is that it doesn't limit how content is displayed, but provides a 'framework' of ways to do so. Even better, it's possible to change the display according to the content. When writing this tutorial it was hard to explain what's going on... But the best way is this: the post will be displayed within the loop according to its content - or contextual differences. Either way, it's including specific files that match up to the category of the post.
</blockquote>
<p>
There's plenty of <a href="http://nettuts.com/working-with-cmss/context-includes/">code to go around</a> introducing you to the parts of the typical WodPress install you'll be working with and some CSS to help you style the resulting changes. You can download the <a href="http://nettuts.s3.amazonaws.com/092_contextIncludes/contextIncludes.zip">source</a> and check out <a href="http://nettuts.s3.amazonaws.com/092_contextIncludes/preview/index.html">a live demo</a> of the end result.
</p>]]></description>
      <pubDate>Wed, 15 Oct 2008 10:23:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Wez Furlong's Blog: HTTP POST from PHP, without cURL]]></title>
      <guid>http://www.phpdeveloper.org/news/6712</guid>
      <link>http://www.phpdeveloper.org/news/6712</link>
      <description><![CDATA[<p>
In an effort to get streams more out in the, er, mainstream, <i>Wez Furlong</i> has <a href="http://netevil.org/node.php?nid=937">posted an example</a> of some code for a common operation many use cURL for - posting to a remote script - but with streams.
</p>
<blockquote>
Every time I search for the code snippet that allows you to do an HTTP POST request, I don't find it in the manual and resort to reading the source. So, here's an example of how to send a POST request with straight up PHP, no cURL.
</blockquote>
<p>
The example uses stream_context_create, fopen, stream_get_contents and an Exception to send off the message from an inputted array to the remote server. Smaller things, like the Content-length header on the request, are automatically handled by the wrapper functionality. You can check out <a href="http://www.php.net/manual/en/wrappers.http.php">this page</a> for more information on the wrapper functionality.
</p>]]></description>
      <pubDate>Wed, 15 Nov 2006 10:09:00 -0600</pubDate>
    </item>
  </channel>
</rss>
