快速提问...我正在使用此代码与我的 Flash 应用程序进行通信:
<?php
// Only run this script if the sendRequest is from our flash application
if ($_POST['sendRequest'] == "parse") {
// Print the var to flash
print "var1=The user's name is Harry";
}
?>
现在这工作正常,但只要我添加一个变量:
<?php
// Only run this script if the sendRequest is from our flash application
if ($_POST['sendRequest'] == "parse") {
$uname = "Name"
// Print the var to flash
print "var1=The user's name is Harry";
}
?>
我收到一条错误消息:
Parse error: syntax error, unexpected T_PRINT in /home/a4935911/public_html/usersOnline.php on line 7
第 7 行是我的打印语句。为什么会这样???请有人帮忙。PHP 快把我逼疯了……