X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C90E5D1C4B7 for ; Wed, 30 Jul 2003 17:35:36 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 73533-05 for ; Wed, 30 Jul 2003 14:34:34 -0300 (ADT) Received: from seapdc01.PNTS (ip63.c216.blk1.bel.nwlink.com [209.20.216.63]) by svr1.postgresql.org (Postfix) with ESMTP id 6DA12D1C4D0 for ; Wed, 30 Jul 2003 14:35:34 -0300 (ADT) Received: from busbydev (BUSBY-DEV [10.0.0.17]) by seapdc01.PNTS with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PRCQ8002; Wed, 30 Jul 2003 10:51:55 -0700 Message-ID: <003f01c356c0$1cb7c120$1100000a@busbydev> Reply-To: "David Busby" From: "David Busby" To: "esrefatak" , References: Subject: Re: RedirectING (asp) by PHP? Date: Wed, 30 Jul 2003 10:29:21 -0700 Organization: Pacific Northwest Ticket Service MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=BAYES_30, REFERENCES, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200307/62 X-Sequence-Number: 2174 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" To: Sent: Wednesday, July 30, 2003 03:34 Subject: [PHP] RedirectING (asp) by PHP? Hi, "redirect" command in PHP?