Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2003 09:04:38 -0700
From:      BSD baby <bsdlap@hitmedia.com>
To:        Konrad Scorciapino <konrad@scorciapino.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Apache and PHP
Message-ID:  <20030415160438.GA7431@mail.hitmedia.com>
In-Reply-To: <200304150957.00048.konrad@scorciapino.org>
References:  <200304150957.00048.konrad@scorciapino.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030415160438.GA7431>