cvs: phpdoc /en/reference/http/functions header.xml
| From: | Maciek Sokolewicz | Date: | Fri, 03 Jan 2003 20:59:51 +0000 |
| Subject: | cvs: phpdoc /en/reference/http/functions header.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969350633@lists.php.net to get a copy of this message | ||
tularis Fri Jan 3 15:59:51 2003 EDT
Modified files:
/phpdoc/en/reference/http/functions header.xml
Log:
-Updated the example so everyone is finally satisfied
Index: phpdoc/en/reference/http/functions/header.xml
diff -u phpdoc/en/reference/http/functions/header.xml:1.10
phpdoc/en/reference/http/functions/header.xml:1.11
--- phpdoc/en/reference/http/functions/header.xml:1.10 Fri Jan 3 11:05:16 2003
+++ phpdoc/en/reference/http/functions/header.xml Fri Jan 3 15:59:51 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
<!-- splitted from ./en/functions/http.xml, last change in rev 1.2 -->
<refentry id="function.header">
<refnamediv>
@@ -173,10 +173,11 @@
<programlisting role="php">
<![CDATA[
<html>
-<?php
-header ("Content-type: audio/x-pn-realaudio");
+<?php
+// This will give an error. Note the output
+// above, which is before the header() call
+header('Location: http://www.example.com/');
?>
-// Broken, note the echo ' ' above
]]>
</programlisting>
</informalexample>