I think the issue was that he wanted to "create" the html files, each one will be different based on user input, database, random, etc...
For your example, why not just name it external.html and be done with it?
Another way to do this would be to have a template saved as a text file. Maybe something like this:
<head>
<title>A page for <!-- NAME --></title>
</head>
<body>
I created this page for <!-- NAME -->
</body>
Then, you open the file, read it into a variable, and run replaces on it, to change <!-- NAME --> into whatever you want...
<?php
$fp = fopen("template.txt","r");
$contents = file($fp);
fclose($fp);
$name = "John";
$contents = str_replace("<!-- NAME -->",$name,$contents);
$new_file = $name . ".html";
$fp2 = fopen($new_file,"w");
fwrite($fp2,$contents);
fclose($fp2);
?>
Maybe that'll help you out, too....
---John Holmes...