# Strangest Problem Ever!

**URL:** <https://forum.kirupa.com/t/strangest-problem-ever/316544>\
**Category:** flash\
**Created:** [November 25, 2010, 12:57am UTC](https://forum.kirupa.com/t/strangest-problem-ever/316544 "2010-11-25T00:57:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gemixin](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@Gemixin](https://forum.kirupa.com/u/Gemixin)\
**Post date:** [November 25, 2010, 12:57am UTC](https://forum.kirupa.com/t/strangest-problem-ever/316544/1 "2010-11-25T00:57:26Z")

</div>

Hi all

I have the weirdest problem I have ever encountered!

Basically I had a Flash app running on my website successfully, pulling in data from php scripts.

Suddenly, it stopped working…although the Flash app worked but it froze when it got to a point where data was pulled from php. However, when ran offline, it worked perfectly!

I tried changing server (bought a new domain and web plan) and just about everything.

I’ve simplified it to this for demo purposes:

Test.swf (with a dynamic textbox named myText1):

```auto

stop();

var scriptName:String = "http://gemixinbiz.fatcow.com/test.php";
var testNumber:Number;

var loader:URLLoader = new URLLoader()

loader.load(new URLRequest(scriptName))

loader.addEventListener(Event.COMPLETE, loaded)

function loaded(e:Event)
{
    testNumber = e.target.data;
    myText1.text = testNumber.toString();
}

```

test.php:

```php

<?php

echo 5;

?>

```

So when I run the SWF locally via Adobe Flash, it works perfectly. But as soon as I upload it to my web site, it won’t work. I have been using my website with Flash and PHP successfully for ages so it’s a mystery!

The links to the online versions are:

[http://www.gemixinbiz.fatcow.com/Test.swf](http://www.gemixinbiz.fatcow.com/Test.swf)  
[http://www.gemixinbiz.fatcow.com/test.php](http://www.gemixinbiz.fatcow.com/test.php)

Any ideas would be massively appreciated.

Thanks  
Gemma
