I've tried both the ActionScript function loadVariables and the ActionScript object LoadVars. One of the names of the variables is "firstOne".
Here is part of my PHP file
Code: Select all
if ($firstOne != null) {
$stuff = '<?xml version="1.0" encoding="UTF-8"?>'."\r\n";
// add all kinds of more stuff to $stuff;
// then write the whole string to a text file
$fp = fopen("eq_test.xml", "w");
fputs($fp, $stuff);
fclose($fp);
// inform Flash of success
print "&result=success&xml=$stuff";
} else {
// inform Flash of failure
print "&result=NoVariables";
}The other computer has Windows 98, PHP version 4.0.6 and Apache version 1.3.20. On this one, the shuttling of variables worked fine. I also used to work on a Windows 2000 machine (I don't remember the PHP or Apache versions there) on which I never had any problems using the above methods.
What could be going on here?