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?