register_globals requirement

Hi, I'm trying to install Drupal in a shared hosting environment under Windows. The installating fails due to the PHP setting "register_globals" being set to 1.
I don't believe that I will be able to modify the Windows registry to alter this property. Is there any other way to work around the problem?
Here is a comment from my hosting provider. Will this suggestion allow me to complete the Drupal installation process? Failing that, is there any way of circumventing this particular requirement?
-----
On Windows, register_globals is On. A user on Windows cannot turn off register_globals, however,
you can use this code to accomplish the same effect:
if (ini_get('register_globals')) {
foreach($GLOBALS as $s_variable_name => $m_variable_value) {
if (!in_array($s_variable_name, array('GLOBALS', 'argv', 'argc', '_FILES', '_COOKIE', '_POST', '_GET', '_SERVER', '_ENV', '_SESSION', '_REQUEST', 's_variable_name', 'm_variable_value'))) {
unset($GLOBALS[$s_variable_name]);
}
}
unset($GLOBALS['s_variable_name']);
unset($GLOBALS['m_variable_value']);
}
-----
Thanks,
alloplastic

Advertising