Thanks for your help. I'm adapting your idea and going to use it this way:
//A typical php web "page" looks like this ...
<?php
function head_include (){ }
include("header.inc.php");
?>
<h2>Page Contents</h2>
<p>etc. etc. etc.</p>
<?php include("footer.inc.php");
// end of "page" file. ?>
//header.inc.php looks like this ...
<head>
<?php head_include(); ?>
<STYLE> style stuff goes here </STYLE>
// now calls the head include function
// it will include whatever was in the "page" file.
// this can be style, meta or javascrips, etc.
<?php head_include(); ?>
</head>
<body>
<!--- end of header.inc.php --->
Now anything I want in the HEAD section just gets put inside the head_include {}s. For javascript stuff I just drop out of php as you suggest:
function head_include(){
?>
<script>
javascript here
</script>
<?php
}
It works. It's flexible. It only uses one header file.