cvs: phpdoc-zh /reference/http/functions header.xml
| From: | Dallas Thunder | Date: | Fri, 16 Dec 2005 03:28:36 +0000 |
| Subject: | cvs: phpdoc-zh /reference/http/functions header.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2721@lists.php.net to get a copy of this message | ||
dallas Fri Dec 16 03:28:36 2005 EDT
Modified files:
/phpdoc-zh/reference/http/functions header.xml
Log:
Updated.
http://cvs.php.net/viewcvs.cgi/phpdoc-zh/reference/http/functions/header.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc-zh/reference/http/functions/header.xml
diff -u phpdoc-zh/reference/http/functions/header.xml:1.7
phpdoc-zh/reference/http/functions/header.xml:1.8
--- phpdoc-zh/reference/http/functions/header.xml:1.7 Tue Sep 6 17:55:06 2005
+++ phpdoc-zh/reference/http/functions/header.xml Fri Dec 16 03:28:36 2005
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- $Author: dallas $ -->
-<!-- EN-Revision: 1.27 Maintainer: Avenger Status: ready -->
+<!-- EN-Revision: 1.29 Maintainer: Avenger Status: ready -->
<!-- CREDITS: dallas -->
<refentry id="function.header">
<refnamediv>
@@ -97,9 +97,12 @@
<programlisting>
<![CDATA[
<?php
-header("Location: http://".$_SERVER['HTTP_HOST']
- . rtrim(dirname($_SERVER['PHP_SELF']), '/\\')
- ."/".$relative_url);
+/* ÖØ¶¨Ïòµ½µ±Ç°ÇëÇóĿ¼ÖеÄÁíÒ»¸öÒ³Ãæ */
+$host = $_SERVER['HTTP_HOST'];
+$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
+$extra = 'mypage.php';
+header("Location: http://$host$uri/$extra");
+exit;
?>
]]>
</programlisting>