Date: Sat, 13 Jul 2002 10:33:47 +0200 From: Roman Neuhauser <neuhauser@bellavista.cz> To: Kjell - LA3SG <kmidtset@c2i.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD 4.6 can not serve PHP web pages Message-ID: <20020713083347.GB322@freepuppy.bellavista.cz> In-Reply-To: <3D2FE2E7.6226.8CC77C@localhost> References: <3D2FC6C6.7120.1EE0F3@localhost> <3D2FE2E7.6226.8CC77C@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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. BTW, I admire anyone who codes anything larger than quick hacks with register_globals On. It's such a mess I can't tell my ass from a hole in the ground after 15 minutes of looking at such code. YMMV, I guess. -- FreeBSD 4.6-STABLE 10:25AM up 39 mins, 6 users, load averages: 0.00, 0.00, 0.00 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?20020713083347.GB322>