mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
-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:
parent
df584d2e86
commit
5df9b6fd17
1 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue