Page 1 of 1

Include Files

Posted: Fri May 16, 2003 8:08 pm
by Templeton Peck
Quick question about include files, If I have justhtml code I want to reuse can I just put the html code in an include file and then put an include statement in my php file to use it?

or do I have to set it up as a function in the include file that passes the html to the php file?

Posted: Fri May 16, 2003 8:10 pm
by phice
You can include any type of file you wish.

Just a simple...

Code: Select all

<?php
include("FILE_LOCATION.EXT");
?>