To:
l.org=20
href=3D"mailto:pgsql-php@postgresql.org">pgsql-php@postgresq l.org
IV>
Sent: Wednesday, July 30, 2003 2:0=
3=20
PM
Subject: Re: [PHP] RedirectING (as=
p) by=20
PHP?
header("location:
=20
class=3D355295610-30072003>URL
class=3D355295610-30072003>");
=20
size=3D2>there must be noting send to the web page before this (not even =
a white=20
space) or u will get an error. if u have to send something first use=20
javascript to redirect
=20
size=3D2>
size=3D2>some=20
thing like
=20
size=3D2>
=20
size=3D2><script>
al=20
color=3D#0000ff size=3D2>location.href=3D"url"
=20
size=3D2></script>
=20
size=3D2>
Hi,
"redirect" command in PHP?
=93Thi=
s e-mail is=20
sent on the Terms and Conditions that can be accessed by Clicking on this=
=20
link
href=3D"http://www.vodacom.net/legal/email.asp">http://www.v odacom.net/le=
gal/email.asp=20
"
------=_NextPart_000_014A_01C356A7.DA0D7CB0--
Re: RedirectING (asp) by PHP?
am 30.07.2003 19:29:21 von David Busby
I use this
// redirect ************************************************************ ***
// Redirects to relative URL
function redirect($to)
{
$schema = $_SERVER['SERVER_PORT']=='443'?'https':'http';
$host =
strlen($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:$_SERVER ['SERVER_NAME'];
if (headers_sent()) return false;
else
{
header("Location: $schema://$host$to");
exit();
}
}
----- Original Message -----
From: "esrefatak"
To:
Sent: Wednesday, July 30, 2003 03:34
Subject: [PHP] RedirectING (asp) by PHP?
Hi,
"redirect" command in PHP?
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend