RedirectING (asp) by PHP?

RedirectING (asp) by PHP?

am 30.07.2003 12:34:25 von esrefatak

This is a multi-part message in MIME format.

------=_NextPart_000_009C_01C3569F.4B418600
Content-Type: text/plain;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable


Hi,

"redirect" command in PHP?





------=_NextPart_000_009C_01C3569F.4B418600
Content-Type: text/html;
charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable








 

Hi,

 

"redirect" command in PHP?

 

 

 

 

 


------=_NextPart_000_009C_01C3569F.4B418600--

Re: RedirectING (asp) by PHP?

am 30.07.2003 13:03:33 von duncan.adams

This is a multi-part message in MIME format.

------_=_NextPart_001_01C3568A.3757E430
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

header("location:URL");
=20
there must be noting send to the web page before this (not even a white spa=
ce) or u will get an error. if u have to send something first use javascrip=
t to redirect
=20
some thing like=20
=20

=20

-----Original Message-----
From: esrefatak [mailto:esrefatak@hotmail.com]
Sent: Wednesday, July 30, 2003 12:34 PM
To: pgsql-php@postgresql.org
Subject: [PHP] RedirectING (asp) by PHP?


=20
Hi,
=20
"redirect" command in PHP?
=20
=20
=20
=20
=20


=93This e-mail is sent on the Terms and Conditions that can be accessed by =
Clicking on this link http://www.vodacom.net/legal/email.asp "

------_=_NextPart_001_01C3568A.3757E430
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



1">






header("location: class=3D355295610-30072003>URL class=3D355295610-30072003>");

 

ze=3D2>there=20
must be noting send to the web page before this (not even a white space) or=
u=20
will get an error. if u have to send something first use javascript to=20
redirect

size=3D2> 

ze=3D2>some=20
thing like

size=3D2> 

size=3D2><script>

    =20
color=3D#0000ff size=3D2>location.href=3D"url"

size=3D2></script>

size=3D2> 


oma=20
size=3D2>-----Original Message-----
From: esrefatak=20
[mailto:esrefatak@hotmail.com]
Sent: Wednesday, July 30, 2003 1=
2:34=20
PM
To: pgsql-php@postgresql.org
Subject: [PHP] Redire=
ctING=20
(asp) by PHP?


 

Hi,

 

"redirect" command in PHP?

 

 

 

 

 

=93This e-mail is sent on the Terms and Conditions that can be accessed by=
=20
Clicking on this link  href=3D"http://www.vodacom.net/legal/email.asp">http://www.v odacom.net/lega=
l/email.asp=20
"


------_=_NextPart_001_01C3568A.3757E430--

Re: RedirectING (asp) by PHP?

am 30.07.2003 13:35:41 von esrefatak

This is a multi-part message in MIME format.

------=_NextPart_000_014A_01C356A7.DA0D7CB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Thank you.
You tired me via your reply. :)
I received just 4 number reply. :)
Again thanks

----- Original Message -----=20
From: Duncan Adams (DNS)=20
To: pgsql-php@postgresql.org=20
Sent: Wednesday, July 30, 2003 2:03 PM
Subject: Re: [PHP] RedirectING (asp) by PHP?


header("location:URL");

there must be noting send to the web page before this (not even a white s=
pace) or u will get an error. if u have to send something first use javascr=
ipt to redirect

some thing like=20



-----Original Message-----
From: esrefatak [mailto:esrefatak@hotmail.com]
Sent: Wednesday, July 30, 2003 12:34 PM
To: pgsql-php@postgresql.org
Subject: [PHP] RedirectING (asp) by PHP?



Hi,

"redirect" command in PHP?





"This e-mail is sent on the Terms and Conditions that can be accessed by =
Clicking on this link http://www.vodacom.net/legal/email.asp "=20
------=_NextPart_000_014A_01C356A7.DA0D7CB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable








 

Thank you.

You tired me via your reply. :) V>
I received just 4 number reply. :)<=
/DIV>
Again=20
thanks

 

style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LE=
FT: #000000 2px solid; MARGIN-RIGHT: 0px">
----- Original Message -----

style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black">Fro=
m:
=20
href=3D"mailto:duncan.adams@vcontractor.co.za">Duncan Adams (DNS) IV>
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>
 


ahoma=20
size=3D2>-----Original Message-----
From: esrefatak=20
[mailto:esrefatak@hotmail.com]
Sent: Wednesday, July 30, 2003=
=20
12:34 PM
To: pgsql-php@postgresql.org
Subject: [PHP=
]=20
RedirectING (asp) by PHP?


 

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