Re: upgrade problems
| From: | Brad Bonkoski | Date: | Fri, 11 Oct 2002 20:38:35 +0000 |
| Subject: | Re: upgrade problems | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119691@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/sv/printwn/language.variables.predefined.php
-or this-
<quote from the docs>
In PHP 4.2.0 and later, the default value for the PHP directive register_globals
is off. This is a major change in PHP. Having
register_globals off affects the set of predefined variables available in the
global scope. For example, to get DOCUMENT_ROOT you'll
use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from
the
URL
http://www.example.com/test.php?id=3 instead of
$id, or $_ENV['HOME'] instead of
$HOME.
</quote>
Brad Bonkoski wrote:
> This should be a FAQ!
> I would say it would point to register globals being turned off in php.ini for
> the newer versions of php.
>
> check this pages for more information:
> http://www.php.net/manual/en/security.registerglobals.php
> -Brad
>
> abw wrote:
>
> > This week we upgraded our solaris 8 server using apache 1.3.27 from php
> > 4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
> > most all php web pages appear, but the code does not work. For example, our
> > support section heavily uses php, and nothing at all was changed on it, yet
> > clicking any link takes you right back to the main page instead of the
> > appropriate support page.
> > Also, a customer that has a php page calling a mysql database suddently quit
> > working. These all worked fine before the upgrade, and like I say, none of
> > the web pages have been changed at all.
> >
> > I didn't find anything in the archives.
> >
> > Has anybody else experienced this? I assumed 4.1.2 to 4.2.3 should be a
> > seamless upgrade for all web pages, but apparently not.
> >
> > I can't find anything helpful in the log files either.
> >
> > Suggestions?
> >
> > Aaron
> >
> > --
> > 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