If you want to include a PHP file from a static page, set the Content type to text/javascript, and then any HTML output from your script should be like this:
print "document.write('<html code here>')";
you can then include the file from any page like this:
<script src="your-script.php"></script>