# Loading Variables from PHP

**URL:** <https://forum.kirupa.com/t/loading-variables-from-php/236376>\
**Category:** flash\
**Created:** [August 20, 2007, 1:11pm UTC](https://forum.kirupa.com/t/loading-variables-from-php/236376 "2007-08-20T13:11:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemoBejingler](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nemoBejingler](https://forum.kirupa.com/u/nemoBejingler)\
**Post date:** [August 20, 2007, 1:11pm UTC](https://forum.kirupa.com/t/loading-variables-from-php/236376/1 "2007-08-20T13:11:01Z")

</div>

I have a main movie that loads variables from a php script using URLLoader. When I test the movie in flash on my computer, everything works fine. When I upload it to my site, it stops working. Any help is appreciated. Thx.

```auto
var newsLoader:URLLoader = new URLLoader();
var newsRequest:URLRequest = new URLRequest("http://www.myDomain.com/getNews.php");
newsLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
newsLoader.addEventListener(Event.COMPLETE, newsLoadComplete);

function newsLoadComplete(event:Event):void {
	newsText.htmlText = newsLoader.data.importedText;
	gotoAndPlay("loadComplete");
}

```
