drupal register_globals

I recently installed a test version of Drupal 7 (very impressed so far). One of the things that I noticed that I hadn't before was the need to turn off register_globals. Actually I got a big error during the installation process, and had to do some digging. A quick Google search revealed the following suggestions:


Method 1
Place a file called php.ini in your accounts root directory with the following content: register_globals = false (you can also try using 'off', or '0'instead of 'false').

Method 2
Place a file called .htaccess in your acccounts root directory with the following content: php_flag register_globals off

In my case, all I needed to do was check to see if I had a php.ini file in my root directory, which I did (Host Gator server). I found what I needed on line 365.

'register_globals = On'
A quick edit to 'register_globals = Off' and shazam! Drupal 7 finished the installation quickly after I entered my Db connection.