|
Posted by windandwaves on 08/28/05 13:32
Janwillem Borleffs wrote:
> 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
>
Thank you, right on the ball! I have asked them if I can change the php.ini
file and I am using $_GET for now.
Thank you .
- Nicolaas
Navigation:
[Reply to this message]
|