PDA

View Full Version : PHP Quote Prob


magnetic_monste
07-10-2003, 08:19 PM
Right I have a very simple Swf at http://www.edentech.org/tom_pages/F2P.htm and it loadsVars from a php file in the same dir called PHP2Flash.php. In flash and debug mode it works perfectly and very quickly. But When I upload it to my webspace it gets the first quote but when I click next it don't do anything. Heres the AS:

function getVars() {
receive_vars = new LoadVars();
receive_vars.load("http://www.edentech.org/tom_pages/PHP2Flash.php");
receive_vars.onLoad = function() {
trace(receive_vars.quote_name);
trace(receive_vars.quote);
quoteName_tb.text = receive_vars.quote_name;
quoteText_tb.text = receive_vars.quote
}
}
getVars();
_root.nextQuote_mc.onRelease = function() {
getVars();
}


Thanks

CyanBlue
07-11-2003, 02:29 AM
Howdy and Welcome... ;)

I think it is the cache problem... If that is the case, you could try this...receive_vars.load("http://www.edentech.org/tom_pages/PHP2Flash.php?uniqueID=" + getTimer());

magnetic_monste
07-12-2003, 10:03 AM
bo selecta!!!

thanks so much, it works! Also I find another solution to cache problems is to add this http meta tag: <META HTTP-EQUIV="cache" CONTENT="no-cache">