I would include a php header (mysite.com/header.php) in all the pages from a site.
mysite.com/header.php
How to do it properly?
There are relative links:
Try
<?php require_once('./header.php'); ?>
And adjust the path as needed, i.e. ../header.
../header
You can do something like this:
include($_SERVER["DOCUMENT_ROOT"] . "/header.php");