strpos() can return false if the string isn't found or 0 if the string is found at the very beginning. However 0 evaluates to false in a boolean check so you need to explicitly check the type:
$soft404test = strpos($contloc, "http://www.uhasselt.be/404b.htm") !== false;