|
![]() |
# 1 |
חבר מתקדם
|
לא יודע לעבוד עם 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);
__________________
PHP קוד:
Last edited by FuZuL; 21-02-08 at 22:02.. |
![]() |
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|