how to see the header of an error php code example Example: php redirect header("Location: http://example.com"); die();