I have been trying to take data from flash, give it to a txt file with php, and get that data back into flash, i knew how to get data into flash, im learning how to get it into flash, but saving it into a txt file is confuzing me.
i have this script thats from a couple different sources, and i can get the first 2 pieces to work, but the last part wont work
<?
// Receiving the variables.
$nam = $_POST[‘nam’];
$xx = $_POST[‘xx’];
$yy = $_POST[‘yy’];
// print the names
print "your name is ". $nam . “.”;
print “You are “. $xx .” pixils from the left.”;
print “You are “. $yy .” pixils from the top.”;
// write to txt file
[COLOR=red]$file = fopen(“php_test.txt”, “w+”);[/COLOR]
[COLOR=red]fwrite($file, “count=”.$xx); [/COLOR]
[COLOR=red]fclose($file);[/COLOR]
?>
the red part wont work, its supposed to set the file php_text.txt to count = $xx