From: | "David Busby" <busby(at)pnts(dot)com> |
---|---|
To: | "esrefatak" <esrefatak(at)hotmail(dot)com>, <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: RedirectING (asp) by PHP? |
Date: | 2003-07-30 17:29:21 |
Message-ID: | 003f01c356c0$1cb7c120$1100000a@busbydev |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)hotmail(dot)com>
To: <pgsql-php(at)postgresql(dot)org>
Sent: Wednesday, July 30, 2003 03:34
Subject: [PHP] RedirectING (asp) by PHP?
Hi,
"redirect" command in PHP?
From | Date | Subject | |
---|---|---|---|
Next Message | Lynna Landstreet | 2003-08-02 00:14:54 | Resultset/array issues |
Previous Message | esrefatak | 2003-07-30 11:35:41 | Re: RedirectING (asp) by PHP? |