Re: HTTP_POST_VARS not set.

From: Date: Wed, 19 Jun 2002 18:01:04 +0000
Subject: Re: HTTP_POST_VARS not set.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102981@lists.php.net to get a copy of this message
$HTTP_POST_VARS was used in previous php versions 4.0.x $_POST is the new name for the same variable. You can do a $_POST = $HTTP_POST_VARS at the beginning of each script. > Hi, > > I'm using PHP 4.2.1 with Apache 2.0.39 on RedHat Linux server, and > found that $HTTP_???_VARS (like $HTTP_POST_VARS) are always empty. > > Though I could access posted values by _POST["name"], but many > scripts use $HTTP_POST_VARS["name"], so this can't be a help. > > Any hint? > > > My configuring options: > > ./configure \ > > --prefix=/usr/local/php \ > > --with-apxs2=/usr/local/apache2/bin/apxs \ > > --with-mysql=/usr \ > > --enable-track-vars > (I know --enable-track-vars option is enabled by default, though) > > In my httpd.conf for Apache: > > LoadModule php4_module modules/libphp4.so > > > AddType application/x-httpd-php .php .phtml > > <Files *.php> > > SetOutputFilter PHP > > SetInputFilter PHP > > </Files> > > test script: > > <?php > > echo "Content-Type: text/plain\n\n"; > > echo "This is a test script.\n"; > > echo "name: ", $HTTP_GET_VARS["name"]; > > ?> > and http://server/test.php?name=foobar would output: > > This is a test script. > > name: > > > Sorry if we already have a solution for this. > > -- > Norihisa Washitake s25109@mail.ecc.u-tokyo.ac.jp > The University of Tokyo, School of Science. > Department of Earth and Planetary Science. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -Pushkar S. Pradhan

« previous php.general (#102981) next »