From owner-freebsd-questions Mon May 6 22:40:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from harrier.csrv.uidaho.edu (harrier.csrv.uidaho.edu [129.101.119.224]) by hub.freebsd.org (Postfix) with ESMTP id 3874837B401 for ; Mon, 6 May 2002 22:40:46 -0700 (PDT) Received: from uidaho.edu (Clancy.csrv-staff.uidaho.edu [129.101.205.170]) by harrier.csrv.uidaho.edu (8.9.3 (PHNE_22672)/) with ESMTP id WAA06378; Mon, 6 May 2002 22:40:42 -0700 (PDT) Message-ID: <3CD76943.7D032358@uidaho.edu> Date: Mon, 06 May 2002 22:42:27 -0700 From: Ian Hamilton X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Christopher Rued Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mod_php4 problem (broken?) References: <15575.22558.765587.494822@ool-18bacefa.dyn.optonline.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Starting with PHP 4_2_0, "External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered as global variables" (http://www.php.net/release_4_2_0.php) to turn this back on, visit /usr/local/etc/php.ini or /usr/local/etc/php.ini-dist and change register_globals to On -Ian Christopher Rued wrote: > > I recently upgraded my mod_php4 port (about a week ago), and since I > did so, parameters do not seem to be available to my PHP files. > > Ex: (index.php) > PHP Test > > "; ?> >
>
>
> Your name: > You age: > >
>
> Hi . > You are years old. >
>
> > > > If I point my browser to http://localhost/index.php?name=chris&age=myage > the page returned looks like this: > > Hello World > > ---------------------------------------------- > > Your name: ________ You age: _______ [SUBMIT] > > ---------------------------------------------- > Hi . You are years old. > ---------------------------------------------- > > > > PHP Variables > ,-----------------------,--------------------, > | Variable | Value | > |-----------------------+--------------------| > | _GET["name"] | chris | > | _GET["age"] | myage | > > .... > > > > Since the arguments are stored in that table, it seems like I am > almost there....just missing something. Anyone have any ideas? > > -- > Chris > > (I'm not subscribed to this list anymore, so I'd appreciate it if you > would be sure to CC me on any replies :) ). > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message