You are here: Re: Newbie Help - old values from textfile being read instead of updated values « PHP Programming Language « IT news, forums, messages
Re: Newbie Help - old values from textfile being read instead of updated values

Posted by d on 01/25/06 13:55

"Dips" <dippyv(nospam)@yahoo.com> wrote in message
news:NIzBf.42245$7S.15037@tornado.rdc-kc.rr.com...
>I have a program that uses PHP to save and read data from a text file on a
>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
> --date completed
> 01/23/06 --last acccess
> 5658.12536 --timeontask
> 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):
>
> 01/23/06
> 01/24/06
> 01/24/06
> 74548.0458
> 29
>
> 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.

Simple test - hold down shift when you refresh the page - if you see your
new figures, IE is indeed caching the page. As others have suggested, use
headers to turn the caching off for that one page.

Dave

> Chris
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация