Re: [PHP] Location header does not work?

2004-08-05 Thread Justin Patrin
On Thu, 5 Aug 2004 10:35:47 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > I really appreciate everyone who responded taking your valuable time > looking into my problem. > > Now back to my problem. Changing the condition to "if($_SERVER['HTTPS'] > != 'on')" did not make any difference unfortu

RE: [PHP] Location header does not work?

2004-08-05 Thread Ed Lazor
I sent Bing specific code that will work: If (!IsSet($_SERVER["HTTPS"])) Header("Location: https://"; . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); Manually go to the URL specified. https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&i d=159&Itemid=162 I

RE: [PHP] Location header does not work?

2004-08-05 Thread Ford, Mike [LSS]
On 05 August 2004 17:12, Ford, Mike [LSS] wrote: > (1) Your browser requests > https://computing.eng.iastate.edu/mambo/index.php?option=conte > nt&task=view&i d=159&Itemid=162 Bother! Sorry, that should, of course, be http:// in step (1)! Cheers! Mike --

RE: [PHP] Location header does not work?

2004-08-05 Thread Ford, Mike [LSS]
On 05 August 2004 16:36, Bing Du wrote: > I really appreciate everyone who responded taking your valuable time > looking into my problem. > > Now back to my problem. Changing the condition to > "if($_SERVER['HTTPS'] > != 'on')" did not make any difference unfortunately. So the result was > stil

Re: [PHP] Location header does not work?

2004-08-05 Thread Bing Du
I really appreciate everyone who responded taking your valuable time looking into my problem. Now back to my problem. Changing the condition to "if($_SERVER['HTTPS'] != 'on')" did not make any difference unfortunately. So the result was still the URL in the Address box of the browser changed to h

Re: [PHP] Location header does not work?

2004-08-04 Thread Jason Wong
On Thursday 05 August 2004 06:18, Justin Patrin wrote: > if($_SERVER['HTTPS'] != 'on') { Careful, IIRC the value of $_SERVER['HTTPS'] differs depending on websever. The original isset() is the better way. Bing, IIRC you're redirecting back to the same page weren't you? > if ($option == 'cont

Re: [PHP] Location header does not work?

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 17:02:30 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > Ok, now I'm confused and cannot understand the result of the following > code snippet. After click the link that I want to redirect, the URL in > the Address box of the browser changed from http to https fine (that's > w

Re: [PHP] Location header does not work?

2004-08-04 Thread Bing Du
Ok, now I'm confused and cannot understand the result of the following code snippet. After click the link that I want to redirect, the URL in the Address box of the browser changed from http to https fine (that's what I expected). But 'hello my friend' was also displayed. How come?

Re: [PHP] Location header does not work?

2004-08-04 Thread Skippy
Quoting Justin Patrin <[EMAIL PROTECTED]>: > On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > > The latest message I got was 'Redirection limit for this URL exceeded. > > Unable to load the requested page.This may be caused by cookies that are > > blocked.'. > > Your p

FW: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
> -Original Message- > From: Ed Lazor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 2:33 PM > To: 'Bing Du' > Subject: RE: [PHP] Location header does not work? > > I tried the https address and it lagged badly on me as well. It did > even

Re: [PHP] Location header does not work?

2004-08-03 Thread Justin Patrin
On Tue, 3 Aug 2004 15:34:27 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > The latest message I got was 'Redirection limit for this URL exceeded. > Unable to load the requested page.This may be caused by cookies that are > blocked.'. > Your page is redirecting you over and over again. Your pro

Re: [PHP] Location header does not work?

2004-08-03 Thread Matthew Sims
> The latest message I got was 'Redirection limit for this URL exceeded. > Unable to load the requested page.This may be caused by cookies that are > blocked.'. > > Bing > Correct me if I'm wrong but I think this is an Apache error. -- --Matthew Sims -- -- PHP General

Re: [PHP] Location header does not work?

2004-08-03 Thread Monty
s, or just Netscape? Monty > From: [EMAIL PROTECTED] (Bing Du) > Newsgroups: php.general > Date: Tue, 3 Aug 2004 15:34:27 -0500 (CDT) > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Location header does not work? > > The latest message I got was 'Redirection limit for thi

RE: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
; 'Bing Du'; '[EMAIL PROTECTED]' > Subject: RE: [PHP] Location header does not work? > > header("Location: " . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); > > > > -Original Message- > > From: John Nich

RE: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
header("Location: " . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); > -Original Message- > From: John Nichel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 12:59 PM > To: Bing Du; [EMAIL PROTECTED] > Subject: Re: [PHP] Loca

Re: [PHP] Location header does not work?

2004-08-03 Thread Bing Du
The latest message I got was 'Redirection limit for this URL exceeded. Unable to load the requested page.This may be caused by cookies that are blocked.'. Bing > On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-bit > of > information : >> I've been struggling with this redire

Re: [PHP] Location header does not work?

2004-08-03 Thread Matthew Sims
> I've been struggling with this redirect thing for a while but still cannot > get it work. I'm desperately needing help, please. > > What I want to do is redirect > http://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162 > to > https://computing.eng.iastate.edu

Re: [PHP] Location header does not work?

2004-08-03 Thread Jason Wong
On Wednesday 04 August 2004 03:41, Bing Du wrote: > == > if ($option == 'content' and $task == 'view' and $id == 159 and $Itemid == > 162) > { > session_write_close(); > header("Location: > https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&; >id=159&Itemid=162"

Re: [PHP] Location header does not work?

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 15:41, Bing Du offered up the following tid-bit of information : > I've been struggling with this redirect thing for a while but still > cannot get it work. I'm desperately needing help, please. > > What I want to do is redirect > http://computing.eng.iastate.edu/mambo/i

[PHP] Location header does not work?

2004-08-03 Thread Bing Du
I've been struggling with this redirect thing for a while but still cannot get it work. I'm desperately needing help, please. What I want to do is redirect http://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&id=159&Itemid=162 to https://computing.eng.iastate.edu/mambo/index.

Re: [PHP] Location header - slow redirect

2003-07-30 Thread Phill Ashworth
Excellent, that does the trick. Thank you Phil On Mercoledì, lug 30, 2003, at 13:56 Europe/Rome, Nicholas Robinson wrote: try putting this after the header: echo ""; It forces the redirect to take place immediately (in most cases!). HTH On Wednesday 30 Jul 2003 11:53 am, admin wrote: I'm usin

Re: [PHP] Location header - slow redirect

2003-07-30 Thread Nicholas Robinson
try putting this after the header: echo ""; It forces the redirect to take place immediately (in most cases!). HTH On Wednesday 30 Jul 2003 11:53 am, admin wrote: > I'm using the following short script to redirect users to another page > on my site (php 4.3.2, Apache 2.0.47). > > $goLang='en';

[PHP] Location header - slow redirect

2003-07-30 Thread admin
I'm using the following short script to redirect users to another page on my site (php 4.3.2, Apache 2.0.47). http://"; . $_SERVER['HTTP_HOST'] . "/" . $goLang . "/"); exit; ?> I'm having a problem where it takes up to 15 seconds for the redirect page to load, but for other redirects on the site

[PHP] Location Header

2001-05-10 Thread Johan Vikerskog (ECS)
> ok. > I have this problem of mine which i dont know how to solve. therefor i use this >great mailing list. > > Lets say i have a URL that looks something like this. > > http://adam:9000//usr/local/test/test.html > > and i want to change this with a PHP script to > > http://adam.artwork.com