Monday, June 1, 2009

PHP - Include File

The PHP include command takes a file name and simply inserts that file's contents into the script that issued the include command.

Example

link.php

<html>
<body>
<a href="http://www.vn4000.com/index.php">vn4000</a>

index.php

<?php include("link.php"); ?>
<p>Hello World!</p>
</body>
</html>