Note that the "or" operator not only "works" when one of the conditions is true, it also "works" when both conditions are true. i.e. As long as one condition is met; it will execute the instruction(s) given.
Example 1:
<?php
if ((!$my_login) || (!$my_password))
{
header ("Location: http:localhost/login.php");
exit;
}
?>