You are here: Re: [PHP] Windows and Query String « PHP « IT news, forums, messages
Re: [PHP] Windows and Query String

Posted by Armando Afα on 04/18/05 19:56

See the register_global my friend maybe it is set off
----- Original Message -----
From: "Greg Deckler" <gdeckler@dispatch.com>
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
>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация