Re: url

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

 



On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McCullough
<mcwc@xxxxxxxxxxxxxx> wrote:
> I have this old script I wrote 2-3 years back.  I gets arguments from the url.  index.php?area=blah
> 
> The client moved the code to another server and some odd happened.  Nothing seems to be parsing from the URL anymore.
> 
> The top code is
> 
> <? if (!isset($area)) { ?>
> HTML
> 
> THis code no longer seems to work and I am racking my brain trying to figure out what.

register_globals is probably off.

You can fix this with an .htaccess file if the web server is apache:

php_flag register_globals on

or you can fix the code:

if(isset($_GET['area']))


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

-- 
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