Sending data between Flash and PHP

I have a high score system in one of my Flash games. I send text to a PHP file which writes the information to a text file. I had it all working over a year ago but now it has seemed to stop working.

My AS 2.0 Code:

[AS]
System.security.loadPolicyFile(“http://www.myurl.com/crossdomain.xml”);

sv = new LoadVars();
sv.sendText = “string to send”;
trace(sv.sendText);
sv.sendAndLoad(“http://www.myurl.com/writeall.php”, sv, “POST”);
[/AS]

My writeall.php code:


<?php
$text = $_POST[sendText];
$myfile = fopen("puzzleall.txt","a");
$fp = fwrite($myfile,$text);
$fp = fwrite($myfile,chr(13));
fclose($myfile);
print "&response=".$text;
?>

No errors or anything come up and like I said, this was all working before. Any ideas?