From owner-freebsd-questions Sat Jul 13 1:34: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 354FE37B400 for ; Sat, 13 Jul 2002 01:33:57 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id B82A943E64 for ; Sat, 13 Jul 2002 01:33:55 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 10628 invoked from network); 13 Jul 2002 08:33:48 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 13 Jul 2002 08:33:48 -0000 Received: from freepuppy.bellavista.cz (localhost.bellavista.cz [127.0.0.1]) by freepuppy.bellavista.cz (8.12.5/8.11.6) with ESMTP id g6D8XmcS000527; Sat, 13 Jul 2002 10:33:48 +0200 (CEST) (envelope-from neuhauser@bellavista.cz) Received: (from roman@localhost) by freepuppy.bellavista.cz (8.12.5/8.12.4/Submit) id g6D8Xmbl000526; Sat, 13 Jul 2002 10:33:48 +0200 (CEST) X-Authentication-Warning: freepuppy.bellavista.cz: roman set sender to neuhauser@bellavista.cz using -f Date: Sat, 13 Jul 2002 10:33:47 +0200 From: Roman Neuhauser To: Kjell - LA3SG Cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD 4.6 can not serve PHP web pages Message-ID: <20020713083347.GB322@freepuppy.bellavista.cz> Mail-Followup-To: Kjell - LA3SG , freebsd-questions@FreeBSD.ORG References: <3D2FC6C6.7120.1EE0F3@localhost> <3D2FE2E7.6226.8CC77C@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D2FE2E7.6226.8CC77C@localhost> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: "Kjell - LA3SG" > To: Roman Neuhauser > 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" > > > > > > 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 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