note 7185 deleted from fwrite by ronabop
| From: | ronabop@php.net | Date: | Fri, 18 Aug 2000 05:08:49 +0000 |
| Subject: | note 7185 deleted from fwrite by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2434@lists.php.net to get a copy of this message | ||
I am trying to dynamically write the contents of a string that includes variables to a new file
using FPUTS(). It works fine the first time after starting my browser, but each subsequent execution
of the script results in the same string being written to the file regardless of the variable
setting. It appears to cache the string data in FPUTS() for some reason. If I stop and restart my
browser and run the script again it only works correcty the first time. I have tried loading the
html header settings to turn of page caching but that doesn't help. Here is a sample of the
script.
$fp = fopen($dest_path.$userid.".txt", "w");
fputs($fp, "http://".$server.$web_path.$new_file.".htm");
fclose($fp);
Any ideas what I am doing wrong?