Re: cvs: phpdoc /en/reference/http/functions header.xml

From: Date: Fri, 09 Dec 2005 09:23:10 +0000
Subject: Re: cvs: phpdoc /en/reference/http/functions header.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371211@lists.php.net to get a copy of this message
Curt Zirzow wrote: > Syntax error in example, and make the example a bit clearer. > -header("Location: http://" . > $_SERVER['HTTP_HOST'] > - . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') > - . "/" . $relative_url); > +/* Redirect to a different page in the current directory that was requested */ > +$host = $_SERVER['HTTP_HOST']; > +$uri = rtrim(dirname($_SERVER['PHP_SELF']); > +$extra = 'mypage.php'; > +header("Location: http://$host$uri/$extra"); > +exit; There wasn't any syntax error but now there is ;-). Jakub Vrana

« previous php.doc (#969371211) next »