Re: RedirectING (asp) by PHP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxx>
To: <pgsql-php@xxxxxxxxxxxxxx>
Sent: Wednesday, July 30, 2003 03:34
Subject: [PHP] RedirectING (asp) by PHP?



Hi,

"redirect" command in PHP?








[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux