# Loading XML cross domains with proxy file

**URL:** https://forum.kirupa.com/t/loading-xml-cross-domains-with-proxy-file/176429
**Category:** flash
**Created:** [January 24, 2006, 3:25am UTC](https://forum.kirupa.com/t/loading-xml-cross-domains-with-proxy-file/176429 "2006-01-24T03:25:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![majman](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/majman/32/2095_2.png) [@majman](https://forum.kirupa.com/u/majman)
#### Post date: [January 24, 2006, 3:25am UTC](https://forum.kirupa.com/t/loading-xml-cross-domains-with-proxy-file/176429/1 "2006-01-24T03:25:02Z")

</div>

I’m having a problem with loading an XML file.

I’m using a working proxy.php, and passing it a url variable.

I think the problem is that the url variable I’m passing is a php file itself with a query on the end of it.

My proxy.php file sits in the same directory as the .swf.  
The url I’m loading is: [http://www.newssource.com/news\_content?id=35](http://www.newssource.com/news_content?id=35)

So my XML load looks like:

newsXML.load(“proxy.php?url=http://www.newssource.com/news\_content?id=25”);

Just doesn’t work…

However, it seems to work when I specify an absolute url for my proxy.php file - which unfortunately won’t work, as I want the files to be able to sit in any direcectory.

Any clue how I might get around this?
