[olug] Apache/PHP setup problem
Jeff Hinrichs
jeffh at delasco.com
Sat Nov 16 01:00:42 UTC 2002
Mike,
Sorry I didn't see this earlier but Ryan got you the answer. The reason
for the change is that register_globals=on and some non-defensive coding
techniques can get you in trouble.
You are right about breaking a number of websites. However, a number of
OSS projects are currently converting to use register_globals=off and in
fact, squirrelmail, just completed the change over.
-jeff
Mike Hostetler said:
>>
>> I found this though:
>> Since PHP 4.2.0 the register_globals option is by default turned
>> OFF, which
>> disables the creation of variables in the global scope matching the
>> parameters in GET queries, POST data, cookies etc.
>>
>> The correct way to get these values is through the $_GET, $_POST and
>> $_COOKIE
>> associative arrays. They are available from PHP 4.1.0, and
>> register_globals was disabled (by default - it can still be turned
>> on) at 4.2.0.
>>
>
> Ryan -- I owe you a beer, or something. It's working like a champ now.
>
> <rant>
> While I agree with the theory of what the default PHP config is trying
> to do, setting that as a default breaks PHP apps that you download
> (like phpPgAdmin).
> </rant>
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
More information about the OLUG
mailing list