PHP Register Globals

Status
Not open for further replies.

torok

Ars Tribunus Militum
2,000
Is there a way to do this at runtime? I have all this code, and it assumes the register globals is ON, and now PHP is distributing this as defaulting to OFF. I took a lot of care to make suer that there were on security holes in my code, and I didn't need $HTTP_POST_VARS[' infront of everything to do it!

If not, has anyone else confronted this problem and found an elegent solution to it? Because I sure can't. Thanks.
 
Ive run in to the same sort of problems. Two different suggestions from Ezrans. First, check out the function ini_set under php options & information ( a pain - must be done on every page ). Also, you can over ride most php settings using an .htaccess file, assuming you're using apache ( very nice, one file for a directory hierarchy). Hope this helps,

futang
 
Status
Not open for further replies.