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

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 still the

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 nttask=viewi d=159Itemid=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 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=contenttask=viewi d=159Itemid=162 It doesn't

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 unfortunately.

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 page is

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 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 what I

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 ==

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

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=contenttask=view; id=159Itemid=162); exit; }

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=contenttask=viewid=159Itemid=162 to

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 redirect

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] Location header does not work? On Tuesday 03 August 2004

RE: [PHP] Location header does not work?

2004-08-03 Thread Ed Lazor
] Location header does not work? 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] Location header does

Re: [PHP] Location header does not work?

2004-08-03 Thread Monty
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 this URL exceeded. Unable to load the requested

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 --http://killermookie.org -- PHP General

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 problem