我正在尝试创建一个php文件,显示课程中5个数字的平均分数,但是当我尝试显示它时,我一直收到此错误
"解析错误:语法错误,意外'打印' (T_PRINT)在第10行和第34行的C:\ xampp \ htdocs \ scores.php中;
<html>
<head>
<title> average scores </title>
</head>
<body>
<?php
$scorefile = fopen("scores.txt,"r")
$avgscore = (score1 +score2 + score3 + score4 + score5)/5);
fclose($scorefile);
print(<p> average score is $avgscore</p>);
?>
</body>
</html>