# Passing variable php to flash, can't access file.php on localhost

**URL:** <https://forum.kirupa.com/t/passing-variable-php-to-flash-cant-access-file-php-on-localhost/252884>\
**Category:** Uncategorized\
**Created:** [February 24, 2008, 11:00pm UTC](https://forum.kirupa.com/t/passing-variable-php-to-flash-cant-access-file-php-on-localhost/252884 "2008-02-24T23:00:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![duncan1212](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@duncan1212](https://forum.kirupa.com/u/duncan1212)\
**Post date:** [February 24, 2008, 11:00pm UTC](https://forum.kirupa.com/t/passing-variable-php-to-flash-cant-access-file-php-on-localhost/252884/1 "2008-02-24T23:00:15Z")

</div>

Hi,  
i’m trying to put a variable in a flash movie using a PHP file.  
I Did everything in the .php (print(filename=$file))…  
I also coded the part for AS in the movie timeline:

loadVariables(“[http://localhost/test.php](http://localhost/test.php)”, this, “GET”);

But on that line, flash 8 pop a message saying that my movie.swf try to communication with localhost, and this access is denied. So I’m redirected to the web setup where I must ADD the address wich I want to be allowed, but that change nothing, after reloading the application, it keeps doing the same thing, even if my new address([http://localhost/test.php](http://localhost/test.php)) is indeed in the allowed list.

Please I really need help for this I can’t find where to fix this anywhere!
