Originally posted by phpman
no it can't be set in a variable. I meant like regular html in between the head tags.

<html>
<head>
<link ..... >
</head>
<body>
<?php

php here

?>
</body>
</html>

that is the same as the header in php.
Use include('filename.dat');
or require('filename.dat');

It outputs the contents straight to the web browser it does not parse it.