PDA

View Full Version : XML and dynamic PHP



Jimmeah
September 30th, 2007, 12:47 PM
Hey everyone,

I just started to use some more Flash for some interactive and dynamic solutions. Now I was using this (http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm) tutorial for using xml into Flash. I got this working and all and start making a PHP script what would write database materials into XML.

The strange part is, when loading this script via this tutorial I only seem to get it loaded once. When I update my PHP script (results.php) and try to look within Flash hitting CTRL+Enter if it's working, it just reads the first version I loaded earlier. It feels like my first version is stuck in a cache. Because when I rename my script to results2.php, results3.php and so on I seem to get fresh results. But I don't want to make a new file for every update I make within my script.

Anyone knows how to solve this? I feel it should be pretty simple, but I cant seem to figure it out.

Thanks in advance!

Zaid_W1red
September 30th, 2007, 01:50 PM
Append the current date/time to the end of your file name as a query string ...that should stop the file caching!

Jimmeah
September 30th, 2007, 02:09 PM
Hmm im not sure if that will work, it is not within the PHP file. The caching is within Flash. When I load result.php once with this tutorial script, it works right. When I edit the php file and reload it in Flash it seems to fetch exactly the same stuff as it did before.

Jimmeah
September 30th, 2007, 02:43 PM
Ah found it

http://www.kirupa.com/forum/showthread.php?t=268226&highlight=XML+PHP

thanks anyhow!