The solution to using .shtml files from within your PHP scripts is as simple as:
include ("somefile.shtml"); Very handy if you have header, sidebar, footer templates setup using SSI. -Jim -----Original Message----- From: Gronquist, Jim M Sent: Wednesday, August 27, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: [PHP] including .shtml file within my php script I have an open source php script to add items to a mysql database. I want to wrap the page using a .shtml file Currently, the .shtml file is: http://bursar.indiana.edu/gotcha/index.shtml The php script is: http://bursar.indiana.edu/gotcha/g_add_gotcha.php I believe that I should be able to use one of the commands: Include, require or virtual in order to have the .shtml file called from php. I'm having trouble with the syntax. Has anybody successfully done something like this? I tried: <?php require("_header.shtml"); ?> ----------------------------------------------------------------- Jim Gronquist Computer Network and Programming Analyst Office of the Bursar Indiana University 812.856.3026 x6-3026 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php