From owner-freebsd-questions Sat Jul 13 2:25:22 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 81EE437B400 for ; Sat, 13 Jul 2002 02:25:19 -0700 (PDT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E442A43E31 for ; Sat, 13 Jul 2002 02:25:18 -0700 (PDT) (envelope-from kmidtset@c2i.net) Received: from me (217-13-29-172.dd.nextgentel.com [217.13.29.172]) by mail.broadpark.no (Postfix) with ESMTP id 83B0E7DA4; Sat, 13 Jul 2002 11:25:17 +0200 (MEST) From: "Kjell - LA3SG" To: Roman Neuhauser Date: Sat, 13 Jul 2002 09:25:37 +0100 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: FreeBSD 4.6 can not serve PHP web pages Reply-To: kmidtset@c2i.net Cc: freebsd-questions@FreeBSD.ORG Message-ID: <3D2FF211.32402.C80407@localhost> In-reply-to: <20020713083347.GB322@freepuppy.bellavista.cz> References: <3D2FE2E7.6226.8CC77C@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) 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 On 13 Jul 2002, at 10:33, Roman Neuhauser wrote: > > 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. > 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