# Quick question about loading from a php file

**URL:** <https://forum.kirupa.com/t/quick-question-about-loading-from-a-php-file/314708>\
**Category:** Uncategorized\
**Created:** [October 6, 2010, 6:13pm UTC](https://forum.kirupa.com/t/quick-question-about-loading-from-a-php-file/314708 "2010-10-06T18:13:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoink](https://avatars.discourse-cdn.com/v4/letter/z/9d8465/32.png) [@zoink](https://forum.kirupa.com/u/zoink)\
**Post date:** [October 6, 2010, 6:13pm UTC](https://forum.kirupa.com/t/quick-question-about-loading-from-a-php-file/314708/1 "2010-10-06T18:13:58Z")

</div>

Hi!

Here’s my problem in a nutshell. I have a database (mysql), then i get data from an external php file that connects to the database.

I use URLReqest and URLLoader to access the php file.

My question is, when i change data in my database, the change reflects in the php file. But when i access the php file from Flash, it doesn’t refresh. I have to make a new php file, then access this new file to get the updated data.

So it’s something like:  
Database value = “OLD VALUE”  
PHP file (test.php) when accessing DB = “OLD VALUE”  
Flash value (after using urlrequest etc to load test.php) = “OLD VALUE”

then I update my database and change it to…  
Database value = “NEW VALUE”  
PHP file (test.php)= “NEW VALUE”  
Flash value when accessing test.php = “OLD VALUE”

i have to rename test.php to test2.php or something to get the NEW VALUE into flash ☹

Any tips? 🙂  
thanks in advance!
