Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
January 25, 2006, 12:34 am
rate this thread
webserver. When I lauch the program (from a menuing system) the data is
read in. A sample file would look something like this:
01/23/06 --data started
01/23/06 --last acccess
15 --last page
While in the program some of these values will change, and when the program
is exited, the new values will be saved back to the text file. The program
saves the data in the textfile correctly and the file when viewed through IE
shows this (which are the updated values):
The problem happens when I try to read in the file back in the menuing
system to see if the assignment is complete (the second line has a value).
The menuing system is reading in the original data and not the updated data,
like the old data file is being stored in a cache. If i completly close out
the program which is embedded in an IE window, and then I relaunch the
program, the updated data will be read in.
Any ideas would be greatly appreciated.
Re: Newbie Help - old values from textfile being read instead of updated values
Most likely, the IE simply uses the cached version of the page
generated earlier. You can (theoretically, anyway) instruct browsers
not to cache by sending "Cache-control:" and "Expires:" headers.
Examples of their use can be found in the PHP Manual: