<?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>Thu, 24 May 2012 16:13:27 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Experts Round Table: HTTP Headers and the PHP header() Function]]></title>
      <guid>http://www.phpdeveloper.org/news/5665</guid>
      <link>http://www.phpdeveloper.org/news/5665</link>
      <description><![CDATA[<p>
From the Experts Round Table, there's <a href="http://www.expertsrt.com/tutorials/Matt/HTTP_headers.html">this extended reference</a> with an overview of HTTP headers (format and what raw HTTP connections look like) and what that means for PHP's header() function.
</p>
<blockquote>
<p>
Many beginning and intermediate PHP programmers seem to think the header() function is some kind of strange voodoo. They work from examples and code snippets and are able to get things done with it, but they don't know quite how it works. That was certainly the way I regarded header() the first time I saw it.
</p>
<p>
In reality, it's quite simple. In this tutorial, I'll explain a little about how HTTP headers work, how they relate to PHP, and a little about their meta tag equivalents.
</p>
</blockquote>
<p>
They <a href="http://www.expertsrt.com/tutorials/Matt/HTTP_headers.html">go on to talk</a> about what the HTTP protocol/headers are and how to "see the whole conversation" by telneting into a server on port 80. They explain what role the headers play in this. The rest of the tutorial goes into detail on PHP's <a href="http://www.php.net/header">header</a> function. They mention redirection, refreshing the page after a few seconds, preventing page caching, and sending along the Content-type header to correctly identify the contents of your page (including things like dynamic images).
</p>
<p>
They also include (too) brief section covering the fact that some of the $_SERVER variables influenced by the HTTP headers should not be trusted. They specifically mention HTTP_REFERER.
</p>]]></description>
      <pubDate>Fri, 23 Jun 2006 06:16:18 -0500</pubDate>
    </item>
  </channel>
</rss>

