i think you are getting confused between SERVER ROOT and DOCUMENT ROOT. based on your last post, you do indeed want DOCUMENT ROOT. however, if you wish to redirect via a call to [man]header[/man] then you need to pass a URL, not a filesystem path.
header('location: http://' . $_SERVER['HTTP_HOST'] . '/login.php');