Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

php traveller:
Making register_globals Safe
Jun 06, 2003 @ 12:20:24

Over on the php traveller site this morning, there's a new link that might be useful for all those out there still struggling with the "register_globals issue" in your code.

Sometimes you have to use a PHP application that requires register_globals set to "On". You can safely do this with mod_security. I just wrote a small article (actually it is part of the user manual) explaining how you can do it. Have a look.

It's a good piece of the larger whole, and gives some quick and easy tips on how you can protect yourself and your site with register_globals on - using a Location directive in your Apache conf. Sure, it's not the easiest way to get the job done, but it's a nice, quick solution if there's just a few vars in question...

tagged:

Link:


Trending Topics: