pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedRedirectING (asp) by PHP?
4+ messages / 3 participants
[nested] [flat]
* RedirectING (asp) by PHP?
@ 2003-07-30 10:34 esrefatak <esrefatak@hotmail.com>
2003-07-30 17:29 ` Re: RedirectING (asp) by PHP? David Busby <busby@pnts.com>
0 siblings, 1 reply; 4+ messages in thread
From: esrefatak @ 2003-07-30 10:34 UTC (permalink / raw)
To: pgsql-php
Hi,
"redirect" command in PHP?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: RedirectING (asp) by PHP?
2003-07-30 10:34 RedirectING (asp) by PHP? esrefatak <esrefatak@hotmail.com>
@ 2003-07-30 17:29 ` David Busby <busby@pnts.com>
0 siblings, 0 replies; 4+ messages in thread
From: David Busby @ 2003-07-30 17:29 UTC (permalink / raw)
To: esrefatak <esrefatak@hotmail.com>; pgsql-php
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" <esrefatak@hotmail.com>
To: <pgsql-php@postgresql.org>
Sent: Wednesday, July 30, 2003 03:34
Subject: [PHP] RedirectING (asp) by PHP?
Hi,
"redirect" command in PHP?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: RedirectING (asp) by PHP?
@ 2003-07-30 11:03 Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>
2003-07-30 11:35 ` Re: RedirectING (asp) by PHP? esrefatak <esrefatak@hotmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Duncan Adams (DNS) @ 2003-07-30 11:03 UTC (permalink / raw)
To: pgsql-php
header("location:URL");
there must be noting send to the web page before this (not even a white space) or u will get an error. if u have to send something first use javascript to redirect
some thing like
<script>
location.href="url"
</script>
-----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 "
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: RedirectING (asp) by PHP?
2003-07-30 11:03 Re: RedirectING (asp) by PHP? Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>
@ 2003-07-30 11:35 ` esrefatak <esrefatak@hotmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: esrefatak @ 2003-07-30 11:35 UTC (permalink / raw)
To: pgsql-php
Thank you.
You tired me via your reply. :)
I received just 4 number reply. :)
Again thanks
----- Original Message -----
From: Duncan Adams (DNS)
To: pgsql-php@postgresql.org
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 space) or u will get an error. if u have to send something first use javascript to redirect
some thing like
<script>
location.href="url"
</script>
-----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 "
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2003-07-30 17:29 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-30 10:34 RedirectING (asp) by PHP? esrefatak <esrefatak@hotmail.com>
2003-07-30 17:29 ` David Busby <busby@pnts.com>
2003-07-30 11:03 Re: RedirectING (asp) by PHP? Duncan Adams (DNS) <duncan.adams@vcontractor.co.za>
2003-07-30 11:35 ` esrefatak <esrefatak@hotmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox