Hi,
die datei wird so erstellt:
$htmlcode = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>test</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h1>Dies ist eine Testseite</h1>
</body>
</html>';
$html_name = "test.html";
$htmldatei = fopen($html_name, "w");
fwrite($htmldatei, $htmlcode);
fclose($htmldatei);
MfG