# Loading variables from php

**URL:** <https://forum.kirupa.com/t/loading-variables-from-php/249382>\
**Category:** Uncategorized\
**Created:** [January 18, 2008, 4:56am UTC](https://forum.kirupa.com/t/loading-variables-from-php/249382 "2008-01-18T04:56:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harilalkm](https://avatars.discourse-cdn.com/v4/letter/h/ec9cab/32.png) [@harilalkm](https://forum.kirupa.com/u/harilalkm)\
**Post date:** [January 18, 2008, 4:56am UTC](https://forum.kirupa.com/t/loading-variables-from-php/249382/1 "2008-01-18T04:56:17Z")

</div>

hello

I have developed a flv player which will take the video file name from a php

my code for  
in frame 3  
getvUrl = “[http://www.example.com/getVideoDetails.php](http://www.example.com/getVideoDetails.php)”;  
loadVariablesNum(getvUrl, 0, “POST”);

in frame 4  
if (\_root.videoName != “”) {  
\_root.path = \_root.videoName;  
play();  
} else {  
gotoAndPlay(4);  
}

\_root.path is the path from the php

php will return the exact file position.  
The swf is embed in “[http://www.example.com/player.html](http://www.example.com/player.html)”  
But problem is if i type the url “[http://example.com/player.html](http://example.com/player.html)”  
like this it will load the swf. I read the documentation and find that it’s problem of cros domain policy so i included this code in my first frame .

System.security.allowDomain("\*");

But the php does not loading…  
pls help me in this …  
i am confused with this…
