Html: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
;Using server-side include |
;Using server-side include |
||
:If it doesn't work, TRY NAMING THE FILE WITH A {{file|.shtml}} EXTENSION! |
:If it doesn't work, TRY NAMING THE FILE WITH A {{file|.shtml}} EXTENSION! |
||
:In Apache, SSI (''include'' module) must be enabled. |
|||
<source lang=html4strict> |
<source lang=html4strict> |
||
<!--#include file="insertthisfile.html" --> |
<!--#include file="insertthisfile.html" --> |
Revision as of 17:14, 12 January 2016
References
Include another file
- Using server-side include
- If it doesn't work, TRY NAMING THE FILE WITH A .shtml EXTENSION!
- In Apache, SSI (include module) must be enabled.
<!--#include file="insertthisfile.html" -->
<!--#include virtual="insertthisurl_cgi.html" -->
- Using server-side include - PHP
- We can also use PHP, if the server is configured for it:
<?php include("filename.html"); ?>
<?php include("http://www.othersite.com/filename.html"); ?>