# Again : Continue Reloading var from PHP

**URL:** <https://forum.kirupa.com/t/again-continue-reloading-var-from-php/82011>\
**Category:** flash\
**Created:** [March 7, 2005, 12:44am UTC](https://forum.kirupa.com/t/again-continue-reloading-var-from-php/82011 "2005-03-07T00:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sule](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sule](https://forum.kirupa.com/u/sule)\
**Post date:** [March 7, 2005, 12:44am UTC](https://forum.kirupa.com/t/again-continue-reloading-var-from-php/82011/1 "2005-03-07T00:44:38Z")

</div>

[left]Hi,[/left]  
I need to display vars from PHP file continuously, without opening/running PHP file, I have the following script :

```auto

Display = function () {
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
MKA01CE901XQ01.text = this.MKA01CE901XQ01;
};
clearTimeout(ID);
};
ID = setInterval(Display, 2000);

```

My problem is, the data is only updated on swf when PHP is opened.  
Is there any missing scripts ?

Thanks  
Sule
