# Cache problems...PHP & FLASH MX

**URL:** <https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885>\
**Category:** Uncategorized\
**Created:** [March 29, 2003, 2:12pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885 "2003-03-29T14:12:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![whodatman](https://avatars.discourse-cdn.com/v4/letter/w/c68b51/32.png) [@whodatman](https://forum.kirupa.com/u/whodatman)\
**Post date:** [March 29, 2003, 2:12pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/1 "2003-03-29T14:12:08Z")

</div>

I’m having problems getting my PHP content…to “refresh”.

I have a site…100% Flash…with a dynamic window…that get’s data dyanamcially via PHP.

Bringing in the data is no problem…but if I refresh the page…my content is not updated.

I have tried all the META tags…like …“no cache”…“refresh”.

Nothing works.

I wanted to know if there is some type of syntax or something within Flash itself…to “make it” reload the content of this dynamic window?

Please Help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 4:04pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/2 "2003-03-29T16:04:38Z")

</div>

modify this: [http://www.kirupa.com/developer/actionscript/tricks/cache.asp](http://www.kirupa.com/developer/actionscript/tricks/cache.asp)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 5:41pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/3 "2003-03-29T17:41:59Z")

</div>

myLVs.load(“myScript.php?uniqueID=” + getTimer());

???

I’m just posting this again since random() function have possibility of returning the same results… 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 6:07pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/4 "2003-03-29T18:07:40Z")

</div>

We should maybe add a few different ways of doing this no cache thing to that tutorial.

I really like Sens string prototype method and you can use it easily across multiple files.

I should bring this up to Kirupa

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 6:10pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/5 "2003-03-29T18:10:58Z")

</div>

Thanks a bunch!

I really appreciate the help you guys give on this forum.

Again…thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 6:22pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/6 "2003-03-29T18:22:34Z")

</div>

Yup… That’s a good idea, lostinbeta… Please do… 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 6:58pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/7 "2003-03-29T18:58:07Z")

</div>

ok…not working…I’m confused.

This is what I have currently:  
A dynamic window with a varible name of “myVar”, within a Moive Clip.

I have the following actions assisgned to the Movie Clip:

[AS]  
onClipEvent (load) {  
loadVariables(“[http://localhost/test.php](http://localhost/test.php)”, this, “GET”);  
}[/AS]

Test.php looks like this:

```php

<?php

$x = "abc";
print "myVar=$x";
?>

```

This all works fine. (except for the caching problems)  
How would I alter the above to what you guys suggested?

Sorry for my ignorance…and thanks for the help in advance!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 29, 2003, 7:00pm UTC](https://forum.kirupa.com/t/cache-problems-php-flash-mx/16885/8 "2003-03-29T19:00:21Z")

</div>

[AS]onClipEvent (load) {  
loadVariables(“[http://localhost/test.php?uniqueID=](http://localhost/test.php?uniqueID=)”+getTimer(), this, “GET”);  
}[/AS]

Should work. Keep in mind that your file is already cached, so you need to clear your cache to see the new file with the no cache code.
