文、意如
s1.php
<html>
<head>
<title>mytest</title>
</head>
<body>
header
<?php
$myname="John";
?>
</body>
</html>
s2.php
<?php
include 's1.php';
echo $myname;
?>
<html>
<head>
<title>mytest</title>
</head>
<body>
Hello page2
</body>
</html>
Yiru@Studio - 關於我 - 意如