לא יודע לעבוד עם ajax
אבל מה שהראית זה נחמד לקחת את המחרוזת דר get וזה..
* מה שאני צריך לעשות זה רק בקובץ
script.php
קוד:
$file = 'path/file.txt';
$str = $_GET['stringToWrite'];
$fileopen = @fopen($file, "a+");
$read = @fread($fileopen, filesize($file));
if(strstr($read, $str) != true){
$value = "<br />".$str;
@fwrite($fileopen, $value);
}
@fclose($fileopen);
עוד משהו?