pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Busby <busby@pnts.com>
To: esrefatak <esrefatak@hotmail.com>
To: pgsql-php@postgresql.org
Subject: Re: RedirectING (asp) by  PHP?
Date: Wed, 30 Jul 2003 10:29:21 -0700
Message-ID: <003f01c356c0$1cb7c120$1100000a@busbydev> (raw)
References: <BAY7-DAV45wNgP1f3L00000bf57@hotmail.com>

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?









view thread (4+ messages)

Message-ID: <003f01c356c0$1cb7c120$1100000a@busbydev>
Permalink:  ../003f01c356c0$1cb7c120$1100000a@busbydev/
Also on:    postgresql.org/message-id/003f01c356c0$1cb7c120$1100000a@busbydev

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: busby@pnts.com, esrefatak@hotmail.com
  Subject: Re: RedirectING (asp) by  PHP?
  In-Reply-To: <003f01c356c0$1cb7c120$1100000a@busbydev>
  References: <BAY7-DAV45wNgP1f3L00000bf57@hotmail.com> <003f01c356c0$1cb7c120$1100000a@busbydev>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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