Re: Redirect browser to another URL?
| From: | George Nicolae | Date: | Tue, 26 Nov 2002 09:07:54 +0000 |
| Subject: | Re: Redirect browser to another URL? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17159@lists.php.net to get a copy of this message | ||
You send some caracter (even return) to the browser. Try to put the
header("location:" . $url); on the firs line of the script.
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Jack Kelly Dobson" <jdobson@tcgcorp.net> wrote in message
news:20021126224211.66427.qmail@pb1.pair.com...
> Hello,
>
> Anyone know how to have a script re-direct the browser to a URL cleanly?
>
> I've tried using header("location:" . $url); but I'm running into a
problem
> with a server error saying header data was already sent from "some line in
> the script that was running" as if the new url is being opened after a
> header has already been sent.
>
> All I want to do is have the script stop it's execution and open another
> page.
>
> Any ideas?
>
> j-
>
>