Includes

NamecheapNamecheap
Watch

Albatross

Established Member
Impact
0
I have a question about server-side includes...I'd like to use includes to save time on my pages, using them essentially to carry-over header and footer XHTML between pages so I don't have to copy & paste them each time.

How do you set up server-side includes? I'm on a hosting company, so I don't have access to server configuration or anything like that.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
Use php includes
 
0
•••
0
•••
grungemusic said:
Use php includes
i agree - but might change the scheme of all work :(

Best of luck

-Steve
 
0
•••
If you have php support:

<? include 'path/to/your/include'; ?>

This should do the trick.
 
0
•••
Albatross said:
I have a question about server-side includes...I'd like to use includes to save time on my pages, using them essentially to carry-over header and footer XHTML between pages so I don't have to copy & paste them each time.

How do you set up server-side includes? I'm on a hosting company, so I don't have access to server configuration or anything like that.

As the others said PHP includes will work fine if you have PHP support at your host (most hosts offer it).

If you want to do SSI which is also fine here is what you do:

<!--#include virtual="/header.html" -->
<body>
rest of your stuff
</body>
<!--#include virtual="/footer.html" -->

Cheers
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back