-Updated the example so everyone is finally satisfied

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@110250 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Maciek Sokolewicz 2003-01-03 20:59:51 +00:00
parent df584d2e86
commit 5df9b6fd17

View file

@ -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 @@ header("Pragma: no-cache"); // HTTP/1.0
<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>