Re: cvs: phpdoc /en/reference/http/functions header.xml
| From: | Curt Zirzow | Date: | Sat, 10 Dec 2005 01:47:27 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/http/functions header.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969371217@lists.php.net to get a copy of this message | ||
On Fri, Dec 09, 2005 at 10:23:10AM +0100, Jakub Vrana wrote:
> 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 ;-).
well damn, thanks for catching that stupid mistake.
Curt.
--
cat .signature: No such file or directory