Posted by Janwillem Borleffs on 08/28/05 11:28
windandwaves wrote:
> usually, if I have http://www.myurl.com/index.php?x=1 then $x == 1
> in my php file. However, on this ISP it sure did not do this.
>
> Is this
> a. an old version of PHP
> b. a security feature
> c. something else or had to know
>
My guess is that your code relies on register globals being enabled. Since
PHP 4.2 this directive is disabled by default, so $x should be referenced as
$_GET['x'].
See: http://www.php.net/register_globals
JW
Navigation:
[Reply to this message]
|