From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 11:48:25 2003 Return-Path: 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 0DC2B37B401 for ; Tue, 15 Apr 2003 11:48:25 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28FFE43F3F for ; Tue, 15 Apr 2003 11:48:24 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (adsl-65-68-247-73.dsl.crchtx.swbell.net [65.68.247.73]) by sage-one.net (8.12.6/8.12.6) with SMTP id h3FImLAT063891; Tue, 15 Apr 2003 13:48:21 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20030415134830.01426820@sage-one.net> X-Sender: jackstone@sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 15 Apr 2003 13:48:30 -0500 To: Jeff Jirsa From: "Jack L. Stone" In-Reply-To: <20030415103302.F39444-100000@boris.st.hmc.edu> References: <3.0.5.32.20030415120651.0142d1d8@sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-1.3 required=4.5 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03 version=2.44-sageamerules_v1 cc: Konrad Scorciapino cc: freebsd-questions@freebsd.org Subject: Re: Apache and PHP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 18:48:25 -0000 At 10:37 AM 4.15.2003 -0700, Jeff Jirsa wrote: >On Tue, 15 Apr 2003, Jack L. Stone wrote: > >> At 02:50 PM 4.15.2003 +0100, Wayne Pascoe wrote: >> >On Tue, Apr 15, 2003 at 09:57:00AM -0300, Konrad Scorciapino wrote: >> >> Hello, >> >> >> >> I am running Apache with mod_php and when I try something like `echo $a` >> in a >> >> webpage like `/foo.php?a=bar`, I get no results. >> >> >> >> Could this be a problem with apache? What could be wrong? >> > >> >As far as I know, the default for php is now to set register_globals to >> >off. You need to edit your php file and turn this on, or you need to >> >access the variable in a safe manner. >> > >> >It's unlikely that this is a problem with Apache from this evidence.. > >I agree. > >> >> I'm having a similar problem myself ever since installing php-4.3. My web >> pages will no longer set the variable input for the php scripts to run. The >> "register_globals" was off on previous version php-4.2. Have tried >> everything I can think off, but web to php interfaces no longer work. Don't >> know if it is an Apache or PHP problem, but tests show the web page input >> is not setting, but PHP update was only change of system. >> > > >Have you tried using $_GET['a'] instead of $a; it's the preferred, safer >way. Another possible thing to check is the phpinfo(); output, and make >sure 'register_globals' is really on. > >- Jeff > Sure enough, the 'register_globals' set to "On" solved my nagging problem and php scripts all work again. Much obliged to the list for that valuable lead to the right answer! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net