<?php
header("Content-type: text/javascript");
include("header.php");
?>
<head>
<script type="text/javascript" src="header.php"></script>
</head>
I'm trying to include a PHP (header & footer) file in an HTML file.
The reason it needs to be HTML is this is a content provider that hosts the content and they've put a restriction on the number of characters that can be in the header (as they host it). Any ideas?
htmlextension. Can't see why any host would need to restrictheadtag. That doesn't make any sense. Are you sure they meanheadtag and notrequest header?