Skip site navigation (1) Skip section navigation (2)

Re: RedirectING (asp) by PHP?

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 (view raw or flat)
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?







In response to

pgsql-php by date

Next:From: Lynna LandstreetDate: 2003-08-02 00:14:54
Subject: Resultset/array issues
Previous:From: esrefatakDate: 2003-07-30 11:35:41
Subject: Re: RedirectING (asp) by PHP?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group