php include呼叫

edited 八月 2014 in PHP新手區
我用include來呼叫另外一個檔案,但是執行結果是錯誤的
==================ex02_05.php==================
<head>
<title>
</title>
<meta http-equiv="content-type" content="text/html;charset=utf8">
</head>
<body>
<?php
$h=date("h")+6;
$m=date("i");
$s=date("s");
?>
</body> 
===================ex02_06.php====================
<head>
<title>include的用法</title>
</head>
<meta http-equiv="content-type" content="test/html;charset=utf8">
<body>
<?php
include<"ex02_05.php">;
echo"hello";
echo"現在的時間:".$h."時".$m."分".$s."秒";
?>
</body>
=================================================
開啟網頁的時後顯是錯誤訊息,說我沒覆蓋到
( ! ) Parse error: syntax error, unexpected '<' in C:\wamp\www\ex02_06.php on line 10
著樣的錯誤訊息
求解!! 謝謝~~

評論

Sign In or Register to comment.