PHP TUTORIALS - PHP File Inclusion
PHP File Inclusion
ADVERTISEMENTS
The include() Function
<a href="http://phptutorials.our24x7i.com//index.htm">Home</a> -
<a href="http://phptutorials.our24x7i.com//ebxml">ebXML</a> -
<a href="http://phptutorials.our24x7i.com//ajax">AJAX</a> -
<a href="http://phptutorials.our24x7i.com//perl">PERL</a> <br />
|
ADVERTISEMENTS
<html>
<body>
<?php include("menu.php"); ?>
<p>This is an example to show how to include PHP file!</p>
</body>
</html>
|
ADVERTISEMENTS
Home -
ebXML -
AJAX -
PERL
This is an example to show how to include PHP file. You can include menu.php file in as many as files you like!
|
The require() Function
<html>
<body>
<?php include("xxmenu.php"); ?>
<p>This is an example to show how to include wrong PHP file!</p>
</body>
</html>
|
This is an example to show how to include wrong PHP file!
|
<html>
<body>
<?php require("xxmenu.php"); ?>
<p>This is an example to show how to include wrong PHP file!</p>
</body>
</html>
|