Hello,
I have a problem that I cannot solve. I am creating a Flash chat system which utilizes PHP to write data to a text file. Flash then reads the text file to display its data.
It is setup so that when the user clicks a button in the swf file, the data is submitted to the php file, which in turn writes the data to the text file. I then have Flash to load the data from that text file into the swf file.
Everything works fine, except that when Flash reads the text file, the latest info is NOT displayed. The only way to display the latest info is to refresh the text file.
I have even tried using an html file instead of a text file to store the data so that I could try adding the meta tags for preventing caching of the page...still did not work.
I KNOW that this can be done without refreshing, as I was checking out a Flash chat called PipeyChat(spelling?), and there was no refresh occuring. He used asp and Flash.
I know that I could use frames and set it up to refresh another frame containing the data file, but that would be a moot point.
Simply put, is there ANY way to display the latest content of a file that is being frequently written to via php WITHOUT refreshing?
Thanks,
David