Why do you need the php script to be in the same page as the flash movie?
if you have a php script like this:
<?PHP
$variables=array("v1"=>"some","v2=>"stuff","v3"=>"here");
foreach($variables AS $k=>$v){
echo $k."=".$v."&";
}
?>
Now when you call your PHP script from Flash using LoadVariables("phpscript.php");
the phpscript will evaluate to
v1=some&v2=stuff&v3=here
now your flash movie will have access to variables v1, v2, v3 which will have been loaded into the _root level of your movie.
I don't think it will work in the same page that your flash movie is embedded in since loadVariables is expecting the text string above.