View Full Version : include?
sicarius
11-16-2002, 05:40 PM
Is there a php function that allows one to include an html file in the middle of the document? Like if I had an html page, and I wanted to display another html file on it. Maybe something like:
<?php include("./somefile.html"); ?>
Does something like this exist?
readfile("./somefile.html");
skidooer
11-16-2002, 07:45 PM
How about, oh I don't know, include() (http://www.php.net/manual/en/function.include.php)? :D
readfile() (http://www.php.net/manual/en/function.readfile.php) probably is better if you are doing just strait HTML though since include() will try to parse it as PHP, which will add a bit more processing.
sicarius
11-16-2002, 10:38 PM
alright. so just use readfile and print what i read. that makes sense.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.