Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / June 2005



Tip: Looking for answers? Try searching our database.

Problems with cache - PHP returns always the same XML

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HuguerasVagueras - 18 Jun 2005 18:40 GMT
Hello,

I've develope an aplication in Flash MX 2004, using PHP&XML to comunicate the
aplication with the DDBB.
Then, If I load an XML object in flash
XMLObjet.load(....program.php?variables...) all is ok, I've all the data that I
need, but if I change the values in the DDBB and without closing the explorer I
ask again to load the XMLObject, then it returns the same XML.

I've tryed to configure the explorer to ask allways if the document has
changed (in the tools menu, temporary documents or cache) and then it works.

But I need that everytime that I reload the XMLObject, it takes the current
information in the database, not from the cache. And it must work in every
explorer with any configuration.
?Could anybody help me to do that??Does anybody knows how to re-load allways
the information from the dataBase without cache?

Thank's a lot.
Hugo.
andersonsidney - 18 Jun 2005 18:44 GMT
Hello.  I think I have read taht you can use META tags in HTML to tell the
browser not to cache the data.  Sorry I don't remember the command but it may
be worth a look.  I'll try and find the command and post it.
HuguerasVagueras - 19 Jun 2005 11:09 GMT
Thanks, but I'm not using HTML but XML. If you know any tag for XML to tell the
browser not to cache the data it'll be the solution. The HML meta tag, I think
that's not the soolution because i'm not using HTML (only the one that contents
the flash object)...

Thnak you very much.
Hugo.
LuigiL - 20 Jun 2005 14:41 GMT
Your call to the php-script should be unique every time. For instance, generate
a random number and add that number to your query-string. Or use this method
(thanks to David Powers):
"http://www.mydomain.com/program.php?ck="+new Date().getTime()
HuguerasVagueras - 21 Jun 2005 09:36 GMT
Fantastic!!

I think it's the most simple solution for my big problem, but I think it's the
better too!
I'll try and i'll post the result, but i'm sure it'll works perfect.

Thank you very much Luigi. You have saved my neck ;P (I hope)
Sumant Agwekar - 28 Jun 2005 07:07 GMT
I am also facing this problem. Could you get the solution of it. I will appreciated your help.  

Thanks
Sumant
LuigiL - 28 Jun 2005 09:32 GMT
Sumant,
You call (in a onLoad handler for your LoadVars-object) to a php-script should be like this:
"http://www.mydomain.com/program.php?ck="+new Date().getTime()
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.