Re: Problem running script after installing PHP 4.2.1
| From: | 1LT John W. Holmes | Date: | Thu, 30 May 2002 20:38:21 +0000 |
| Subject: | Re: Problem running script after installing PHP 4.2.1 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100004@lists.php.net to get a copy of this message | ||
You can use $_SERVER['QUERY_STRING'] if register_globals is off.
---John Holmes...
----- Original Message -----
From: "Leotta, Natalie (NCI/IMS)" <LeottaN@ims.nci.nih.gov>
To: "'1LT John W. Holmes'" <holmes072000@charter.net>; "Igor
Portnoy"
<igor@gibsonusa.com>; <php-general@lists.php.net>;
<php-install@lists.php.net>
Sent: Thursday, May 30, 2002 4:31 PM
Subject: RE: [PHP] Problem running script after installing PHP 4.2.1
> One more question - could you just use $_GET[$QUERY_STRING} then? Our URL
> doesn't even have IDs - it's just 001&06&055&... Then I explode it and
put
> it into variables. There are up to 12 vars that we pass that way so we
> didn't label them.
>
> Thank you!! We're not worried about security - if someone tampers with
the
> URL then the database query doesn't work and they get an error message (my
> vote was for "don't be an idiot and play with things you don't
understand")
> but my boss didn't think it was cute. :-)
>
> Thanks again!
>
> -Natalie
>
> -----Original Message-----
> From: 1LT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: Thursday, May 30, 2002 4:29 PM
> To: Leotta, Natalie (NCI/IMS); Igor Portnoy; php-general@lists.php.net;
> php-install@lists.php.net
> Subject: Re: [PHP] Problem running script after installing PHP 4.2.1
>
>
> Okay, the only issue with the upgrade is that register_globals defaults to
> off. That is because of security reasons so it's not _quite_ as easy to
> write insecure scripts.
>
> With register_globals off, a URL like index.php?page=4 will not give you a
> $page variable, only $_GET['page'], or $HTTP_GET_VARS['page']. If your
using
> HTTP_GET_VARS now, then you'll be fine. The new $_GET[] array is just like
> HTTP_GET_VARS except its easier to type and it's always global (even in
> functions and classes, etc).
>
> If you turn on register_globals, any script you have now will run just
fine
> on the latest PHP as far as accessing GET, POST, COOKIE, etc data is
> concerned.
>
> Hope that helps. Let me know if there are any other questions.
>
> ---John Holmes...
>
> ----- Original Message -----
> From: "Leotta, Natalie (NCI/IMS)" <LeottaN@ims.nci.nih.gov>
> To: "'1LT John W. Holmes'" <holmes072000@charter.net>; "Igor
> Portnoy"
> <igor@gibsonusa.com>; <php-general@lists.php.net>;
> <php-install@lists.php.net>
> Sent: Thursday, May 30, 2002 4:18 PM
> Subject: RE: [PHP] Problem running script after installing PHP 4.2.1
>
>
> > I have a quick question. I've been reading all of this about the
> upgrade -
> > we're just waiting for our network guy to do it.
> >
> > We need to use the query string for parameters so our URL is
> > "cut-and-paste-able." Is that going to be a problem? We were using
> > $HTTP_POST_VARS until someone decided that they wanted people to be
> > able
> to
> > direct someone else to the exact same graph.
> >
> > I just thought that I might as well get some info now, so that I can
> > be prepared if everything is going to break :-)
> >
> > Thanks!!
> >
> > -Natalie
> >
> > -----Original Message-----
> > From: 1LT John W. Holmes [mailto:holmes072000@charter.net]
> > Sent: Thursday, May 30, 2002 4:16 PM
> > To: Igor Portnoy; php-general@lists.php.net; php-install@lists.php.net
> > Subject: Re: [PHP] Problem running script after installing PHP 4.2.1
> >
> >
> > You probably still have register globals off still and your URL
> > variables aren't being accessed correctly. Use $_GET['page'] or
> > $HTTP_GET_VARS['page'], or turn on register_globals...
> >
> > ---John Holmes...
> >
> > ----- Original Message -----
> > From: "Igor Portnoy" <igor@gibsonusa.com>
> > To: <php-general@lists.php.net>; <php-install@lists.php.net>
> > Sent: Thursday, May 30, 2002 4:03 PM
> > Subject: [PHP] Problem running script after installing PHP 4.2.1
> >
> >
> > Hello,
> >
> >
> >
> > I am using MySQL to display some data to the users. I have upgraded
> > to
> PHP
> > Version 4.2.1 on my FreeBSD Apache server, and now data from the
> > database
> is
> > not displayed correctly. Well, the page with the data shows up, and it
> > actually shows correct number of records. However, when I click on
> > the "next" or "2" buttons the next page with records doesn't show
> > up.
> > See example here:
> > http://www.gibsonusa.com/test2/page/index.php
> >
> >
> >
> > Before I upgraded to PHP 4.2.1 everything was working perfectly. Any
> > ideas what could cause this, and how can it be fixed?
> >
> >
> >
> > Thanks.
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >