If you pass an URL when you're trying to include(), it uses a socket to HTTP connect to the site and grabs the HTML output. Thus, you're getting the PHP parsed HTML, so header.php is having to evaluate an undefined header.php.
When you include PHP files, you MUST get the locally. Using
include("header.php");
should be sufficient if it's in the same directory. Hope this helps 😉