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)" <[EMAIL PROTECTED]>
To: "'1LT John W. Holmes'" <[EMAIL PROTECTED]>; "Igor Portnoy"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]]
> Sent: Thursday, May 30, 2002 4:16 PM
> To: Igor Portnoy; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> 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
>


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

Reply via email to