PHP HTT_*VARS variables
Posted on 2012-03-16
I'm fixing some old code.
Through the code I'm seeing the following vars set as global
$HTTP_POST_VARS (Changing to $_POST)
$HTTP_GET_VARS (Changing to $_GET)
$HTTP_COOKIE_VARS (Changing to $_COOKIE)
$HTTP_SESSION_VARS (Changing to $_SESSION)
$HTTP_POST_FILES (Change to what??)
1. Once I enabled register_long_arrays in php.ini my code began working. I'm guessing this isn't the best solution though. So I want to change all of my HTTP vars to their newer version. Are all of my "Changes" above correct?
2. What do I change HTTP_POST_FILES? Is this considered one of the "register_long_arrays"?
3. From what I've been reading in the docs, changing the HTTP vars above will be fine and they will all return the same data they once did. Does anyone see a problem with changing any of these? I don't want to introduce another problem.