# Loading data from external php

**URL:** <https://forum.kirupa.com/t/loading-data-from-external-php/63410>\
**Category:** Uncategorized\
**Created:** [September 6, 2004, 3:11pm UTC](https://forum.kirupa.com/t/loading-data-from-external-php/63410 "2004-09-06T15:11:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pete](https://forum.kirupa.com/u/pete)\
**Post date:** [September 6, 2004, 3:11pm UTC](https://forum.kirupa.com/t/loading-data-from-external-php/63410/1 "2004-09-06T15:11:23Z")

</div>

hey guys,

i just tried to figure out how to load data from an external php-file.  
i tried to do it with crossdomain.xml file but it just works with external .swf to load in.  
is there any tricky way to make that work ???  
there always appears a security sandbox exception though i have located the crossdomain.xml in the root folder.  
as i said there is no problem with external .swf but .php files.

any help is appreciated

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 6, 2004, 3:15pm UTC](https://forum.kirupa.com/t/loading-data-from-external-php/63410/2 "2004-09-06T15:15:50Z")

</div>

Not 100% sure what the problem is, but within flash dont use absolute urls and you wont have to bother with the crossdomain problem  
ie within flash using something like  
/test/flash/myphpfile.php  
rather than [http://www.domain.com/test/flash/myphpfile.php](http://www.domain.com/test/flash/myphpfile.php)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 6, 2004, 4:54pm UTC](https://forum.kirupa.com/t/loading-data-from-external-php/63410/3 "2004-09-06T16:54:36Z")

</div>

but i have to because the .php file is on another domain  
my flash movie is e.g. on [www.mysite.com/myMovie.swf](http://www.mysite.com/myMovie.swf)  
my php file is e.g. on [www.mysecondsite.com/data.php](http://www.mysecondsite.com/data.php)

i know this sounds strange but i will save much time if there is a possibility to load the external data

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 6, 2004, 6:52pm UTC](https://forum.kirupa.com/t/loading-data-from-external-php/63410/4 "2004-09-06T18:52:19Z")

</div>

hmm try checking the crossdomain file if its working perhaps with another script of some sort. I avoid going crossdomain if I can but havent had problems with it as long as the file was there.  
Maybe the php isnt outputting the data in the correct format?  
Try running just the php file and unsure its outputting what you need

Post the php file/fla if you can

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 6, 2004, 10:04pm UTC](https://forum.kirupa.com/t/loading-data-from-external-php/63410/5 "2004-09-06T22:04:09Z")

</div>

i think it’s hopeless  
because i load the data from a lycos server and this puts always a long script behind my output ☹  
although thank you for you help
