That being the case, check out the php.ini file on Server B and make sure it's the same as on server A. As John or Matt suggested, maybe the global variables are not registered the same on both servers.