나는 PHP에서 excersise하고있다. 나는 램프 서버를 시작하고, html 파일을 만들어서/opt/lampp/htdocs (phpinfo()에서 보았다)로 보냈다. ? 내가 ... 가 여기 팁/tip.html이 나에게 부분적인 출력을 gavesLAMPP html 또는 php error?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> TIP OF THE DAY</title>
</head>
<!-- start the body -->
<body>
<h1>Tip of the day</h1>
<?php
print "<h3> Here is your tip:</h3>";
?>
<div style="border-color:green; border-style: groove; border-width: 2px;">
<?php
readFile("tips.txt");
?>
</div>
</body>
</html>
입니다 localhost를 엽니 다 :;> 종류의 부분의 출력을 구문 분석 "여기 tip.html 내용은 PHP 스크립트 태그 ???
파일의 끝은 .html이 아닌 .php로 끝나야합니까? 서버가 PHP 용 .html 파일을 구문 분석하도록 설정되어 있습니까? – j08691
글쎄 ... 내가 뒤따른 것처럼 ... 그들은 PHP 나 html 일 수 있다고 말한다. 그래서 나는 .php도 시도했다. –