From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 09:04:39 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 5969E37B401 for ; Tue, 15 Apr 2003 09:04:39 -0700 (PDT) Received: from mail.hitmedia.com (mail.hitmedia.com [205.162.11.163]) by mx1.FreeBSD.org (Postfix) with SMTP id C010943F85 for ; Tue, 15 Apr 2003 09:04:38 -0700 (PDT) (envelope-from bsdlap@hitmedia.com) Received: (qmail 7606 invoked by uid 0); 15 Apr 2003 16:04:38 -0000 Date: Tue, 15 Apr 2003 09:04:38 -0700 From: BSD baby To: Konrad Scorciapino Message-ID: <20030415160438.GA7431@mail.hitmedia.com> References: <200304150957.00048.konrad@scorciapino.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304150957.00048.konrad@scorciapino.org> User-Agent: Mutt/1.4i 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 16:04:39 -0000 > 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? Read this page: http://us2.php.net/manual/en/security.registerglobals.php And in your page, instead of: echo $a; Try this: echo $_REQUEST['a']; Although it seems like a pain at first (I type $_REQUEST[''] a few hundred times a day now) - it really is the smart thing to do.