Click to See Complete Forum and Search --> : PHP command for loading html page


redundguy
05-21-2003, 11:22 PM
How can I load a html page with PHP?

AdamGundry
05-22-2003, 02:43 AM
I presume you mean simply insert the contents of the file into your PHP-generated page, in which case you can do one of these:

include("filename.html");
require("filename.html");

If there is an error, include gives a warning whereas require stops the script from executing (a fatal error).

Adam