Andy,
Not entirely sure what you are after here but here's a suggestion.
Is your HTML in a seperate file that you want to write to a new file?
If so you could do:
// THIS READS THE EACH LINE OF htmlfile.htm TO AN ARRAY
$html = file("pathtohtmlfile/htmlfile.htm");
$fp = fopen("ccc..index2.htm", "w");
// THIS WRITES THE ARRAY TO THE NEW FILE LINE BY LINE
for ($i=0;$i < count($html);$i++) {
fwrite($fp, $html[$i] . "\n");
}
fclose($fp);
Hope this helps
Mike
www.digitalegg.net