Using include() : Include « Language Basics « PHP






Using include()

<html>
<head>
<title>Using include()</title>
</head>
<body>
<?php
include("myIncludeFile.php");
?>
</body>
</html>

<!-- myIncludeFile.php
<?php
print "included!!<BR>";
print "4 + 4 = ".(4 + 4);
?>
-->


           
       








Related examples in the same category

1.Test of PHP Includes
2.Using include() Within a Loop
3.Using include() to Execute PHP and Assign the Return Value