vrana Fri Dec 9 04:22:00 2005 EDT
Modified files: /phpdoc/en/reference/http/functions header.xml Log: Fix syntax error http://cvs.php.net/diff.php/phpdoc/en/reference/http/functions/header.xml?r1=1.28&r2=1.29&ty=u Index: phpdoc/en/reference/http/functions/header.xml diff -u phpdoc/en/reference/http/functions/header.xml:1.28 phpdoc/en/reference/http/functions/header.xml:1.29 --- phpdoc/en/reference/http/functions/header.xml:1.28 Fri Dec 9 00:39:15 2005 +++ phpdoc/en/reference/http/functions/header.xml Fri Dec 9 04:21:56 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <!-- splitted from ./en/functions/http.xml, last change in rev 1.2 --> <refentry id="function.header"> <refnamediv> @@ -108,7 +108,7 @@ <?php /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER['HTTP_HOST']; -$uri = rtrim(dirname($_SERVER['PHP_SELF']); +$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'mypage.php'; header("Location: http://$host$uri/$extra"); exit;