Windows and Query String

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux