From the php manual
$a == $b Equal TRUE if $a is equal to $b.
$a != $b Not equal TRUE if $a is not equal to $b.
Which means that:
if(!($boolean == true || feof($fp)) {
// this code should be execute if $boolean evalutes to true
// and $fp is at end-of-file.
}
if($boolean != true || !feof($fp)) {
// and this code should be execute if $boolean dose not evalute to true and $fp isen't at end-of-file
}