Re: [PHP] Windows and Query String

2005-04-18 Thread John Nichel
Greg Deckler wrote:
I have searched for this in the FAQ's, News Archives and Googled for it
and cannot seem to find the answer. Please help.
Should have checked the manual.
http://us4.php.net/register_globals
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.
$10 will get you $20 that register_globals is OFF.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Windows and Query String

2005-04-18 Thread Chris Ramsay
snip
Thus, I am stuck
having to get this to work until I can find about 50,000 hours to conver
all of the code.
/snip

No doubt a lesson is contained herewith...if you are working on a
windows machine now, grab yourself a free copy of Textpad from Helios
(google for it) and use their wonderful search and replace function -
you'll get it done sooner than you think - honest!

rgds

Chris

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



Re: [PHP] Windows and Query String

2005-04-18 Thread Armando Afá
See the register_global my friend maybe it is set off
- Original Message - 
From: Greg Deckler [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, April 18, 2005 10:10 AM
Subject: [PHP] Windows and Query String


 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
 

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



Re: [PHP] Windows and Query String

2005-04-18 Thread Greg Donald
On 4/18/05, Chris Ramsay [EMAIL PROTECTED] wrote:
 No doubt a lesson is contained herewith...if you are working on a
 windows machine now, grab yourself a free copy of Textpad from Helios
 (google for it) and use their wonderful search and replace function -
 you'll get it done sooner than you think - honest!

How would a search and replace tool know which variables to
replace/change/convert or not?


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

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