you can create another txt file like:
<?
$name ="f1";
$fp = fopen("$name.txt","w");
if($fp)
print"<center>Success </center><br>";
else
print"<br> OOHHHHHHHHHHH !!!!! ";
?>
this creates a txt file by the name "f1.txt"
but make sure the directory in which the file is to be created have the ppermission required.
regards.....