Defined variables losing value after using drupal_bootstrap
When "register_globals" is enabled, Drupal unsets all global variables before boostrap.

Disable the "register_globals" option in your live server.