nonono....
change your code to this...
<?php
$fd = fopen("textic.txt", "a");
fwrite($fd, "$zapis");
fclose($fd);
?>
the 'a' means append and create if not existing. or 'a+' if you want to append and read.
while 'w' can only create and write to a file.