derick Fri Jun 20 11:11:47 2003 EDT Modified files: /phpdoc/en/reference/http/functions header.xml Log: - Consistency Index: phpdoc/en/reference/http/functions/header.xml diff -u phpdoc/en/reference/http/functions/header.xml:1.17 phpdoc/en/reference/http/functions/header.xml:1.18 --- phpdoc/en/reference/http/functions/header.xml:1.17 Wed Jun 18 05:26:18 2003 +++ phpdoc/en/reference/http/functions/header.xml Fri Jun 20 11:11:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <!-- splitted from ./en/functions/http.xml, last change in rev 1.2 --> <refentry id="function.header"> <refnamediv> @@ -58,7 +58,7 @@ <programlisting role="php"> <![CDATA[ <?php - header("HTTP/1.0 404 Not Found"); +header("HTTP/1.0 404 Not Found"); ?> ]]> </programlisting> @@ -101,8 +101,9 @@ <![CDATA[ <?php header("Location: http://www.example.com/"); /* Redirect browser */ -exit; /* Make sure that code below does - not get executed when we redirect. */ + +/* Make sure that code below does not get executed when we redirect. */ +exit; ?> ]]> </programlisting> @@ -141,12 +142,18 @@ <programlisting role="php"> <![CDATA[ <?php -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past -header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - // always modified -header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 +// Date in the past +header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); + +// always modified +header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + +// HTTP/1.1 +header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); // HTTP/1.0 + +// HTTP/1.0 +header("Pragma: no-cache"); ?> ]]> </programlisting> @@ -184,8 +191,8 @@ <![CDATA[ <html> <?php -// This will give an error. Note the output -// above, which is before the header() call +/* This will give an error. Note the output + * above, which is before the header() call */ header('Location: http://www.example.com/'); ?> ]]>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php