WebPlayer call a server php script issue

Hi, i’m working to a facebook game that saves and reads .txt files on the server. I’ve created 2 php script to read/write a file. Now, when i run the scene that save the file, there aren’t problems: the file is correctly saved, but when i try to read it, the webplayer doesn’t call the “readFile.php”. I’m sure of this beacause i tried to call it manually and it works well: it returns the file and creates a log file on server. I’ve also created a windows version of my game and it works well: it read the remote file and do what it’s developed for. The problem is on webplayer, it seems can’t call the readFile.php script.

Thanks to anyone who responds and sorry for my bad english.

That is how i make my request:

WWW request = new WWW("http://www.hostname.it/FB-Game/readFile.php?fname=" + fileName);
StartCoroutine(WaitForRequestDone(request));

the WaitForRequestDone() function:

public IEnumerator WaitForRequestDone(WWW www)
{
	yield return www;
	string file = www.text;
	string[] tempString = file.Split('*');
	times = new float[tempString.Length];
	messages = new string[tempString.Length];
	for (int i = 0; i < tempString.Length-1; i++)
	{
		tempLine = tempString*.Split(':');*

_ times = System.Convert.ToSingle(tempLine[0]);_
_ messages = tempLine[1] + “:” + tempLine[2];
* if (tempLine.Length > 3)
{
messages += “:” + tempLine[3];
if (tempLine.Length > 4)
messages += “:” + tempLine[4];
}*_

* }*
* tempIndex = 0;*
* }*
This code works on a stand alone application and i use almost the same commands to write a file (and it works fine).

I’ve had a look at the scripting reference and it mentions the following,

Note: The security sandbox present in
web-player builds prevents you from
accessing content not hosted the
server where the webplayer is hosted.

This may be where you are having trouble.

UPDATE: I have just been playing with this myself for the first time and you can host your game on a different server than the web server but you need to have a crossdomain.xml file in the root of the web server your fetching the data from.

Info can be found
here.