Re: Re: $QUERY_STRING

From: Date: Tue, 13 Nov 2001 14:29:29 +0000
Subject: Re: Re: $QUERY_STRING
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-74495@lists.php.net to get a copy of this message
Hi Ernesto, Try taking a look at the HTTP_SERVER_VARS array: test.php?1 HTTP_SERVER_VARS["argc"] = 1 HTTP_SERVER_VARS["argv"] = array([0] => test) XPerience the new windows (scary!) :) John > >Nop. getenv("QUERY_STRING") also returns an empty string. >The crazy thing is that getenv returns an empty string instead of FALSE. >Anyway, if I do "index.php?a=1", I get HTTP_GET_VARS['a']==1, but >$QUERY_STRING is still empty :( > > >dav wrote: > >> Try getenv() function to import the query string from apache ambient. >> This is not a bug, maybe the index.php?1 isn't standard at all. > >> "Ernesto" <enc@netcombbs.com.ar> ha scritto nel messaggio >> news:3BF16AFB.2010902@netcombbs.com.ar... >> >>>Hi, >>> >>>I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Windows. >>>I'm trying to access the $QUERY_STRING var, but it's empty even when I >>>do have a query string. On one server (Win2K), it works ok. On the other >>>server (WinXP) it's always empty. >>>If I use "index.php?s=1", $HTTP_GET_VARS['s'] is 1, but I need the >>>raw >>>query string because it's something like "index.php?1". >>> >>>Is this a known bug on PHP/WinXP? >>> >>>Regards, >>>Ernesto -- /* SteeleSoft Consulting John Steele - Systems Analyst/Programmer * We also walk dogs... Dynamic Web Design PHP/MySQL/Linux/Hosting * www.steelesoftconsulting.com jsteele@steelesoftconsulting.com */

« previous php.general (#74495) next »