Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2002 09:25:37 +0100
From:      "Kjell - LA3SG" <kmidtset@c2i.net>
To:        Roman Neuhauser <neuhauser@bellavista.cz>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: FreeBSD 4.6 can not serve PHP web pages
Message-ID:  <3D2FF211.32402.C80407@localhost>
In-Reply-To: <20020713083347.GB322@freepuppy.bellavista.cz>
References:  <3D2FE2E7.6226.8CC77C@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 Jul 2002, at 10:33, Roman Neuhauser wrote:

> > From: "Kjell - LA3SG" <kmidtset@c2i.net>
> > To: Roman Neuhauser <neuhauser@bellavista.cz>
> > Date: Sat, 13 Jul 2002 08:20:55 +0100
> > Subject: Re: FreeBSD 4.6 can not serve PHP web pages
> > Cc: freebsd-questions@FreeBSD.ORG
> > 
> > On 13 Jul 2002, at 9:06, Roman Neuhauser wrote:
> > > > From: "Kjell - LA3SG" <kmidtset@c2i.net>
> > > > 
> > > > When making a fresh install of 4.6 or 4.5 followed by a cvsup of 
> > > > RELENG_4, followed by installing mod_PHP4 from 
> > > > the ports using defaults this does not work:
> > > > ------
> > > > calling up the page 
> > > > http://my.site.com/page.php?a=5 from my browser, 
> > > > or my.site.com/page.php?a=5 in a <form..> tag, a 
> > > > is undefined when page.php is entered. IE 
> > > > arguments are not passed.
> > > 
> > >     http://www.php.net/release_4_2_0.php
> >
> > Yes. I see. Thank you! 
> > Looks like I have to make an average of 56 changes in 678 
> > routines! And 56 * 678 =?
> > ------------------------------------
> 
>     ** The biggest change in PHP 4.2.0 concerns variable handling.
>     ** External variables (from the environment, the HTTP request,
>     ** cookies or the web server) are no longer registered in the
>     ** global scope by default.  The preferred method of accessing
>     ** these external variables is by using the new Superglobal
>     ** arrays, introduced in PHP 4.1.0.
> 
>     I don't see where it says you can't have the old behavior.
>     This has been configurable since I remember (which is 4.0b3).
>     Just change the value of register_globals in php.ini to "On",
>     and your code works as before.
> 
Where does php.ini live? I find php.ini-dist in /usr/local/etc
Should i rename this one and leave it in /usr/local/etc ?
Kjell





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D2FF211.32402.C80407>