Flash/PHP Integration Problems

Hello, I seem to be having some problems with accessing PHP pages through flash. I have followed the instructions closely from the “Learn How to Use Flash, PHP and MySQL” tutorial, and have even downloaded the completed files from the [url=“http://www.kirupa.com/developer/actionscript/authentication.htm”]“Login Using Flash MX, PHP and MySQL” tutorial. The databases are set up correctly, but even when not even attempting to access them, I cannot appear to get the simplest scripts to function properly.

My actionscript:


loadVariables("http://localhost/test.php", this, "GET");
/*
 *text is my dynamic textbox. x is the variable that should 
 *be retrieved from my PHP page.
 */
text=x;
stop ();

My file, test.php:


<?php
$q="Blah";
print "x=$q";
?>

For some reason, Flash does not seem to be recieving the variable from test.php. The text box remains blank. Does anyone have any idea what I am doing wrong, or what needs to be configured differently? Any help would be appreciated.

Thanks,
-Caiyern