[PHP] Re: Header won't redirect

2003-09-19 Thread PHP
Jay, good guess, but wrong!  While register_globals does equal off, I am
using $_GET['pagename']  to assign the value to $pagename before the snippet
of code that I sent.  Sorry I didn't mention that earlier.  I tried putting
the _GET in my header redirection directly, but that didn't help.  Any other
ideas?  Anyone else have an idea?

Thanks,
Jonathan Duncan


Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
This used to work before I upgraded my PHP.

[/snip]

Let me guess, you upgraded without actually reading the README or update
notes. I am going to guess that register_globals = off in php.ini. You
can either fix the variables $_GET['pagename'] or turn RG back on.

Jay Blanchard


Jonathan Duncan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 This is code that I have in my index that check whether or not SSL is
being
 used when accessing certain pages and if not then it redirects to the same
 address but with SSL.

 if ($pagename==login || $pagename==signup || $pagename==checkout) {
  if (!$HTTPS) {
//header(Location:

https://.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].?pagename=$pagename);
exit;
 }
   }

 This used to work before I upgraded my PHP.  Now when I click on a link
that
 matches my SSL checker it just hangs:

 http://www.routerbitworld.com/index.php?pagename=checkout

 If I change the header to redirect to a location without any variable
 directive like this

 http://www.routerbitworld.com/index.php

 ...works fine.  Why can't I send a variable this way?

 Thanks,
 Jonathan Duncan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Marek Kilimajer
And what about $_SERVER[HTTPS], are you using it?

PHP wrote:

Jay, good guess, but wrong!  While register_globals does equal off, I am
using $_GET['pagename']  to assign the value to $pagename before the snippet
of code that I sent.  Sorry I didn't mention that earlier.  I tried putting
the _GET in my header redirection directly, but that didn't help.  Any other
ideas?  Anyone else have an idea?
Thanks,
Jonathan Duncan
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
This used to work before I upgraded my PHP.
[/snip]

Let me guess, you upgraded without actually reading the README or update
notes. I am going to guess that register_globals = off in php.ini. You
can either fix the variables $_GET['pagename'] or turn RG back on.
Jay Blanchard

Jonathan Duncan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
This is code that I have in my index that check whether or not SSL is
being

used when accessing certain pages and if not then it redirects to the same
address but with SSL.
if ($pagename==login || $pagename==signup || $pagename==checkout) {
if (!$HTTPS) {
  //header(Location:
https://.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].?pagename=$pagename);

  exit;
   }
 }
This used to work before I upgraded my PHP.  Now when I click on a link
that

matches my SSL checker it just hangs:

http://www.routerbitworld.com/index.php?pagename=checkout

If I change the header to redirect to a location without any variable
directive like this
http://www.routerbitworld.com/index.php

...works fine.  Why can't I send a variable this way?

Thanks,
Jonathan Duncan


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: Header won't redirect

2003-09-19 Thread Jay Blanchard
[snip]
Jay, good guess, but wrong!  While register_globals does equal off, I am
using $_GET['pagename']  to assign the value to $pagename before the
snippet
of code that I sent.  Sorry I didn't mention that earlier.  I tried
putting
the _GET in my header redirection directly, but that didn't help.  Any
other
ideas?  Anyone else have an idea?
[/snip]

Can we see the line of code where you are making the assignment?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Robert Cummings
Here's an idea... echo each of the values and see what they actually
contain. While you grab $pagename from $_GET, where are you getting
$HTTPS? Is it a superglobal too? Maybe it's $_SERVER['HTTPS']

Cheers,
Rob.

On Fri, 2003-09-19 at 10:57, PHP wrote:
 Jay, good guess, but wrong!  While register_globals does equal off, I am
 using $_GET['pagename']  to assign the value to $pagename before the snippet
 of code that I sent.  Sorry I didn't mention that earlier.  I tried putting
 the _GET in my header redirection directly, but that didn't help.  Any other
 ideas?  Anyone else have an idea?
 
 Thanks,
 Jonathan Duncan
 
 
 Jay Blanchard [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 [snip]
 This used to work before I upgraded my PHP.
 
 [/snip]
 
 Let me guess, you upgraded without actually reading the README or update
 notes. I am going to guess that register_globals = off in php.ini. You
 can either fix the variables $_GET['pagename'] or turn RG back on.
 
 Jay Blanchard
 
 
 Jonathan Duncan [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  This is code that I have in my index that check whether or not SSL is
 being
  used when accessing certain pages and if not then it redirects to the same
  address but with SSL.
 
  if ($pagename==login || $pagename==signup || $pagename==checkout) {
   if (!$HTTPS) {
 //header(Location:
 
 https://.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].?pagename=$pagename);
 exit;
  }
}
 
  This used to work before I upgraded my PHP.  Now when I click on a link
 that
  matches my SSL checker it just hangs:
 
  http://www.routerbitworld.com/index.php?pagename=checkout
 
  If I change the header to redirect to a location without any variable
  directive like this
 
  http://www.routerbitworld.com/index.php
 
  ...works fine.  Why can't I send a variable this way?
 
  Thanks,
  Jonathan Duncan
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
Try $_REQUEST['pagename'] instead.  Oh before you do that, try this and see
if you have any received data at all in the first place.  just look for
'pagename' in any arrays, don't look for $_GET['pagename'], just look for
'pagename' and see if there is any.

--snip--
?
print_r($GLOBALS);
?
--snip--
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
Jay, good guess, but wrong!  While register_globals does equal off, I am
using $_GET['pagename']  to assign the value to $pagename before the
snippet
of code that I sent.  Sorry I didn't mention that earlier.  I tried
putting
the _GET in my header redirection directly, but that didn't help.  Any
other
ideas?  Anyone else have an idea?
[/snip]

Can we see the line of code where you are making the assignment?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Marek and Rob,

Doh!  That was it.  I am still finding things that I used to assign
globally.  It is a good thing, but it makes for a bit of work.  Thanks to
Jay too.  I appreciate everyone's help.

Have a good one,
Jonathan Duncan



Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 And what about $_SERVER[HTTPS], are you using it?

 PHP wrote:

  Jay, good guess, but wrong!  While register_globals does equal off, I am
  using $_GET['pagename']  to assign the value to $pagename before the
snippet
  of code that I sent.  Sorry I didn't mention that earlier.  I tried
putting
  the _GET in my header redirection directly, but that didn't help.  Any
other
  ideas?  Anyone else have an idea?
 
  Thanks,
  Jonathan Duncan
 
 
  Jay Blanchard [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  [snip]
  This used to work before I upgraded my PHP.
 
  [/snip]
 
  Let me guess, you upgraded without actually reading the README or update
  notes. I am going to guess that register_globals = off in php.ini. You
  can either fix the variables $_GET['pagename'] or turn RG back on.
 
  Jay Blanchard
 
 
  Jonathan Duncan [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
 
 This is code that I have in my index that check whether or not SSL is
 
  being
 
 used when accessing certain pages and if not then it redirects to the
same
 address but with SSL.
 
 if ($pagename==login || $pagename==signup || $pagename==checkout)
{
  if (!$HTTPS) {
//header(Location:
 
 
 
https://.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'].?pagename=$pagename);
 
exit;
 }
   }
 
 This used to work before I upgraded my PHP.  Now when I click on a link
 
  that
 
 matches my SSL checker it just hangs:
 
 http://www.routerbitworld.com/index.php?pagename=checkout
 
 If I change the header to redirect to a location without any variable
 directive like this
 
 http://www.routerbitworld.com/index.php
 
 ...works fine.  Why can't I send a variable this way?
 
 Thanks,
 Jonathan Duncan
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Jay,

Try replying to the group so that your contributions stay with the thread
instead of being orphaned and lost.

Regards,
Jonathan Duncan


Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
Jay, good guess, but wrong!  While register_globals does equal off, I am
using $_GET['pagename']  to assign the value to $pagename before the
snippet
of code that I sent.  Sorry I didn't mention that earlier.  I tried
putting
the _GET in my header redirection directly, but that didn't help.  Any
other
ideas?  Anyone else have an idea?
[/snip]

Can we see the line of code where you are making the assignment?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Header won't redirect

2003-09-19 Thread Jay Blanchard
[snip]
Try replying to the group so that your contributions stay with the
thread
instead of being orphaned and lost.
[/snip]

I always do, did something weird happen? 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Jonathan Duncan
Perhaps it is just Outlook Express but many of your replies are showing as
ophans.

Jonathan


Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
Try replying to the group so that your contributions stay with the
thread
instead of being orphaned and lost.
[/snip]

I always do, did something weird happen?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
Well, I'm using Outlook Express and it looked fine for an hour or so now.
But not with the ones earlier in the morning.  Strange though!

Scott F.

Jonathan Duncan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Perhaps it is just Outlook Express but many of your replies are showing as
 ophans.

 Jonathan


 Jay Blanchard [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 [snip]
 Try replying to the group so that your contributions stay with the
 thread
 instead of being orphaned and lost.
 [/snip]

 I always do, did something weird happen?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
But Jay Blanchard situation wasn't the only one.  It's the same for other
people.

Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Well, I'm using Outlook Express and it looked fine for an hour or so now.
 But not with the ones earlier in the morning.  Strange though!

 Scott F.

 Jonathan Duncan [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Perhaps it is just Outlook Express but many of your replies are showing
as
  ophans.
 
  Jonathan
 
 
  Jay Blanchard [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  [snip]
  Try replying to the group so that your contributions stay with the
  thread
  instead of being orphaned and lost.
  [/snip]
 
  I always do, did something weird happen?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Curt Zirzow
* Thus wrote Jonathan Duncan ([EMAIL PROTECTED]):
 Jay,
 
 Try replying to the group so that your contributions stay with the thread
 instead of being orphaned and lost.

he did.

Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php