Windows and Query String

From: Date: Mon, 18 Apr 2005 15:10:54 +0000
Subject: Windows and Query String
Groups: php.general 
Request: Send a blank email to php-general+get-213278@lists.php.net to get a copy of this message
I have searched for this in the FAQ's, News Archives and Googled for it and cannot seem to find the answer. Please help. I have a script that simply echo's a query string variable to the screen. This works on a previously configured linux box with PHP4.0, but not on a newly created Windows 2003 box with PHP5.0. Here is the URL sample: http://www.blahblahblah.com/hello.php?pg=1 Here is the page sample: <? echo $pg; ?> On the Windows box, I get "Undefined variable". I suspect that something in my php.ini is not set correctly to allow this but I cannot find what that is. Now, I realize that I should probably NOT be using the variable directly but rather initializing it via _GET or by some other method because using it directly makes the code nearly impossible to read. But, I am trying to convert some existing code not written by me that runs on this Linux box to a Windows machine and whoever wrote this made RAMPANT use of this method of accessing query string parameters. Thus, I am stuck having to get this to work until I can find about 50,000 hours to conver all of the code. Any assistance is GREATLY appreciated.

« previous php.general (#213278) next »