Include Require


      v . Yv ?

v v . v v v.

v (frame) . . BOOKMARK v, v .

v v SSI Server Side Include . SHTML .

v ( ) - vvv.

!

v vv v v . vv v v vvvv v . v v . .

㺺 , v .

v .

.

?

1. Header,
2. Menu
3. Content
4. Menu
5. Footer



CONTENT . v . v v v. . v .

. v v v v. 1995 . v .

<?
$page_title = "whatever you would write goes here";
require ("header.php");
require ("menu.php");
print ("The whole stuff you want to fuss about");
require ("menu.php");
require ("footer.php");
?>


require vv . require . .

print ("The whole stuff you want to fuss about");

v . v v v . Y require vv v v v.

HEADER - v v.

<HTML>
<HEAD>
<TITLE>
<?php
print ("$page_title");
?>
</TITLE>
<BODY>
<TABLE WIDTH=80% ALIGN=CENTER BORDER=0>
<TR><TD ALIGN=CENTER><B><Welcome to the Site!</B></TD></TR>
<TR><TD ALIGN=LEFT><P>


HEADER v . HEADER- 2- . HEADER PAGE_TITLE .

?

PARSER v vv . vvv v . PAGE_TITLE . 2- PAGE_TITLE . VALUE v .

v FOOTER- v .

<P></TD></TR>
<TR><TD ALIGN=CENTER><SMALL>Copyright 2002 Asuult.net</SMALL></TD></TR>
</TABLE>
</HTML>


. FOOTER 人 HTML vv .

HEADER FOOTER v v. Home page- v.

<?php
$page_title = "Home Page";

require ("header.php");
require ("menu.php");
print ("The whole stuff you want to fuss about");
require ("menu.php");
require ("footer.php");
?>


2 vv

$page_title = "Home Page";

$page_title = "Second Page";

print ("The whole stuff you want to fuss about");

. v , HEADER, FOOTER v.

3

<?php
$page_title = "Third Page";

require ("header.php");
require ("menu.php");
print ("The whole stuff you want to fuss about");
require ("menu.php");
require ("footer.php");
?>


.

<CENTER><a href=1.php>Home</a> <a href=2.php>ABOUT ME</a> <a href=3.php>LINKS</a></CENTER>

.

.

<HTML>
<HEAD>
<TITLE>
Home Page</TITLE>
<BODY>
<TABLE WIDTH=80% ALIGN=CENTER BORDER=0>
<TR><TD ALIGN=CENTER><B><Welcome to the Site!<br>This is a header. It could be nicer if it were a real header.<br> Educational purpose ONLY!</B></TD></TR>
<TR><TD ALIGN=LEFT><P><br><CENTER>
<a href=1.php>Home</a>
<a href=2.php>ABOUT ME</a>
<a href=3.php>LINKS</a></CENTER>
<br>
<br>
<br>
WELCOME TO MY HOME PAGE STUFF GOES HERE. THIS IS THE PAGE GREETS YOUR VISITORS SO IT SHOULD BE REALLY NICE. NOW, CLICK THE ABOUT ME PAGE FROM THE MENU AND SEE WHAT CHANGES AND WHAT STAYS THE SAME.
<br>
<br>
<br>
<CENTER>
<a href=1.php>Home</a>
<a href=2.php>ABOUT ME</a>
<a href=3.php>LINKS</a></CENTER>
<P></TD></TR>
<TR><TD ALIGN=CENTER><P>This is a footer. It could be nicer if it were a real footer.<br> Educational purpose ONLY! <SMALL>Copyright 2002 Asuult.net</SMALL></TD></TR>
</TABLE>
</HTML>


ISP- v vv .

HEADER- . Yv v . vv
REQUIRE INCLUDE v, . INCLUDE- v v REQUIRE .