Test of PHP Includes : Include « Language Basics « PHP






Test of PHP Includes


<!-- include-me.php
<?php
  echo( '<p>"from included file!"</p>' );
?>
-->

<html>
<head>
<title> Test of PHP Includes </title>
</head>
<body>
<?php
  include('include-me.php');
?>
</body>
</html>

           
       








Related examples in the same category

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