# Apache Flash Php problem -

**URL:** https://forum.kirupa.com/t/apache-flash-php-problem/71978
**Category:** programming
**Created:** [December 1, 2004, 4:55am UTC](https://forum.kirupa.com/t/apache-flash-php-problem/71978 "2004-12-01T04:55:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Marakkesh](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@Marakkesh](https://forum.kirupa.com/u/Marakkesh)
#### Post date: [December 1, 2004, 4:55am UTC](https://forum.kirupa.com/t/apache-flash-php-problem/71978/1 "2004-12-01T04:55:34Z")

</div>

I have been using some swfs on my site to load database data without a problem. My loadVars object uses a relative url from which to pull the info -

System.useCodePage = true; (this is necessary as I’m dealing with multiple languages)  
loadText = new loadVars();  
loadText.load(“func/data.php”);  
loadText.onLoad = function() {

topbar.htmlText = this.topbar;  
};

The problem is that to make my site more user friendly, I have been using apache’s mod\_rewrite

so now, my page

[www.mysite.com/country.php?country=Sweden](http://www.mysite.com/country.php?country=Sweden)

is being mod\_rewritten to

[www.mysite.com/destinations/Sweden/](http://www.mysite.com/destinations/Sweden/) (or vice-versa)

So I have tried using an absolute url in place of the relative one, i.e.

loadText.load(“[http://www.mysite.com/func/data.php](http://www.mysite.com/func/data.php)”);

but with no luck - the data won’t load.

My flash file is in a separate directory -

[www.mysite.com/flash/flashfile.swf](http://www.mysite.com/flash/flashfile.swf)

Anyone have any ideas? Ideally I would be able to just use an absolute url, and I’ve seen examples of this being used - why might it not be working here?

Thanks -
