Placing crossdomain.xml in a subdirectory on server doesn't work.

Hi,

I am making a game on Web Player, I am using a database and a php file to connect it to unity.

I read on various forums and posts that I need a crossdomain.xml file to do so…
I placed that file on the server where my php file resides in a sub directory of root.

I know that this file has to be placed in the root folder, but I don’t have the access to root.

so, how could I run my project by placing this file in a subdirectory of the root.

Thanks,

Amit… :slight_smile:

A policy file has to be in the root Web directory on the server. That’s to ensure that someone who perhaps controls a sub-folder on the server can’t run a policy that the “official” site (eg; the root) doesn’t support.
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html#site-control

Hi Amit,

you can run your build without crossdomain.xml in one way. Put both file of webplayer build in same folder where your PHP file reside give that url of php in your script.

I have placed all the files in a same folder only, but it doesnt work without having the crossdomain.xml file in the root folder.

Hi Appels,

Thanx for the great help… the game works fine by placing the file in root folder…

But I have came up with a new issue…

The leaderboard gets loaded when the game is played on server, but when I integrate the game in a facebook page then the leaderboard returns null…
Can you help me out with this… :slight_smile: