לצערי לא עובד..הנה הקוד:
<?php
$f1=urldecode($_GET);
$f2=urldecode($_GET);
$f3=urldecode($_GET);
$f4=urldecode($_GET);
$f4= implode("<br>",explode(",",$f4));
$counter_file="newMessage_count.txt";
if (file_exists($counter_file)) {
$counter_fp=@fopen($counter_file,"r"); //creating the file for reading
$counter_hitcount=(integer)@fread($counter_fp,file size($counter_file)); //reads the hitcount from the file
fclose($counter_fp);
$counter_hitcount ;
$counter_fp=@fopen($counter_file,"w"); //creating the file for writing
fwrite($counter_fp,(string)$counter_hitcount); //writes the new counter hit to the file
fclose($counter_fp);
$fileNumber= $counter_hitcount;
}
else{
$counter_fp = fopen($counter_file, 'w');
fwrite($counter_fp, (string)0); //writes the new counter hit to the file
fclose($counter_fp);
$fileNumber=0;
}
$str= "<u>שם:</u> $f1 <br> <u>אימייל:</u> $f2 <br><u>הודעה:</u> $f3 <br><u>רשימת קניות</u> $f4";
$counter_fp = fopen('text'.$fileNumber.'.html', 'w');
fwrite($counter_fp, (string)$str); //writes the new counter hit to the file
fclose($counter_fp);
?>