amansker Posted March 14, 2004 Posted March 14, 2004 How do I set up includes on server 47? Just need to add header/footer HTML file includes and not sure how to do it. Quote
MikeJ Posted March 14, 2004 Posted March 14, 2004 There are various ways to do that... PHP (requires .php extension, and path is relative to location of page on the file system): <?php include("includedir/header.html"); ?> Server Side Includes (require .shtml extension) Virtual (path a browser uses to access file): <!--#include virtual="/includedir/header.html"--> Those are just a couple ways. You can do a google search for php include or server side includes for more detail info. Or ask here. Hope that helps. Quote
amansker Posted March 14, 2004 Author Posted March 14, 2004 Yes, that helps. I did search and read some info, but it wasn't so clear exactly what to do here (probably my ignorance). thanks! Quote
Deverill Posted March 14, 2004 Posted March 14, 2004 Another option is to leave your files named .htm or .html and add the following lines to your .htaccess file which tells the server to check for PHP code even if the file does not end in .php AddType application/x-httpd-php .htmAddType application/x-httpd-php .html Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.