Alıntı
<?
$dosya='deneme.html';
$fd=fopen('$dosya','w');
$icerik='metin';
fwrite($fd,$icerik);
fclose($fd);
?>
chmod 777 olmalı. güvenlik tartışılır tabi...