Re: [phplib] stricting methods (was: [RFC] Future of phplib) From: Richard Archer (rha <email protected>)
Date: 07/24/01

At 7:37 AM +0200 24/7/01, giancarlo pinerolo wrote:

>That's the reason I proposed that 'edulcorated' strict, that could do
>something like, to maintain compatibility with all on the $PHP_SELF
>value, and still be able to run the actual PHPLIB with register_globals
>off
>
>if (ini_get("register_globals","off") ## or how the hell you write this
> $PHP_SELF=$HTTP_ $HTTP_SERVER_VARS["PHP_SELF"];

[rha <email protected> /tmp]$ locate .php |grep /home |wc
    833 835 37184

And that's just on my main server.

Much as I would like to turn register_globals off, I *really* don't
fancy working my way through nearly 1000 scripts fixing all the problems
that would create.

When I was young and naive, I thought having form variables passed in
as globals was just about the neatest thing I could imagine.

Now I'm older and wiser, and it's too late.

The only fix I can envisage to this is to set up two web servers on the
server, one with register_globals off and another with it on. And gradually
migrate sites from one to the other.

Any other ideas?

 ...Richard.

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>