Basic Flash - PHP problem

I’m really pulling my hair out. I’m running Flash CS3 and PHP 5 and am publishing to FP8 and AS 2.0. I’m trying to run a basic Flash<->PHP example I found online and keep getting PHP code injected into the variables. I’m pretty sure it’s a PHP config problem that I’ve had before (I never remember the correct config when I move from PC to PC):


AS code, frame 1:
stop();

//Actionscript
$var1 = “hello, I’m Bobby.”;
$var2 = 100;
$var3 = “John Deer”;

$envelope = new LoadVars();
$envelope_received = new LoadVars();

$envelope.variable1 = $var1;
$envelope.hellothere = $var2;
$envelope.byebye = $var3;

$envelope_received.onLoad = function(success:Boolean):Void {
$the_status = $envelope_received.vstatus;
$final_result = $envelope_received.vfinal;
$tut_credits = $envelope_received.vcredits;
trace('the_status: ’ + $the_status);
trace('final_result: ’ + $final_result);
trace('tut_credits: ’ + $tut_credits);
}

$envelope.sendAndLoad(“script.php”, $envelope_received);


PHP code, script.php:
<?php
$phpvar1 = $HTTP_POST_VARS[“variable1”];
$phpvar2 = $HTTP_POST_VARS[“hellothere”];
$phpvar3 = $HTTP_POST_VARS[“byebye”];

$mycredits = “Laurent Hogue”;

echo ("&vstatus=complete&vfinal=yes&vcredits=$mycredits&");
?>


I get this in the output (trace) window:

the_status: complete
final_result: yes
tut_credits: $mycredits


It’s not processing the variables on the way out of PHP. I hope this is an easy one… I’ve totally run out of time on this project. Thanks in advance, and my apologies if this has been asked umpteen times by others…