Re: Redirect Function?!!
| From: | Jason Brooke | Date: | Fri, 07 Dec 2001 05:41:02 +0000 |
| Subject: | Re: Redirect Function?!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76984@lists.php.net to get a copy of this message | ||
<?php header("Location: http://your.domain/path/to/file.html");
?>
----- Original Message -----
From: "Martin Towell" <martin.towell@world.net>
To: "'Cam'" <mail@minnirok.com>; <php-general@lists.php.net>
Sent: Friday, December 07, 2001 3:23 PM
Subject: RE: [PHP] Redirect Function?!!
> how about include'ing the target page then exit'ing straight after?
>
> include "$page";
> exit;
>
> -----Original Message-----
> From: Cam [mailto:mail@minnirok.com]
> Sent: Friday, December 07, 2001 4:23 PM
> To: php-general@lists.php.net
> Subject: [PHP] Redirect Function?!!
>
>
> Anyone know of a way to redirect to another page with PHP? I'm aware of
the
> META tag redirection via the HTTP header, but I really need a more elegant
> solution that redirects immediately without relying on any HTML tags.
> Appreciate the help,
> -C
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>