
05-12-2007, 13:11
|
 |
|
|
חבר מתאריך: 24.02.05
הודעות: 17,595
|
|
|
|
|
תוספת קטנה, קוד ה PHP
קוד PHP:
<?php
$f1=urldecode($_GET["f1"]);
$f2=urldecode($_GET["f2"]);
$f3=urldecode($_GET["f3"]);
$f4=urldecode($_GET["f4"]);
$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);
?>
_____________________________________
חתימתכם הוסרה כיוון שלא עמדה בחוקי האתר. לפרטים נוספים לחצו כאן. תוכלו לקבל עזרה להתאמת החתימה לחוקים בפורום חתימות וצלמיות.
|