Re: url
| From: | Mike Smith | Date: | Wed, 20 Oct 2004 17:29:58 +0000 |
| Subject: | Re: url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199919@lists.php.net to get a copy of this message | ||
My guess is your client has the latest version of PHP (>4.2.0) whiile
the old server had an older version (pre 4.2.0).
register_globals = off in the php.ini
http://us2.php.net/manual/en/ini.sect.data-handling.php#ini.register-globals
Change
<? if (!isset($area)) { ?>
to
<? if (!isset($_GET['area'])) { ?>
On Wed, 20 Oct 2004 10:07:38 -0700 (PDT), Dan McCullough
<mcwc@rocketmail.com> 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.
>
> --------------------------------------------------------
> "Theres no such thing as a problem unless the servers are on fire!"
>
> ---------------------------------
> Do you Yahoo!?
> vote.yahoo.com - Register online to vote today!
>