Hello FacePunch,
So I have a website that I have to make for a friend. Unfortunately, I don't have server support so PHP and and HTTP is useless. Like every website, I have a header with links and a banner. But without the use of PHP, I have to copy and paste the code to each page which gets irksome every time the links on the navigation bar changes.
Does anybody have a solution to this? Greatly appreciated.
If SSI is disabled get jQuery and use [url]http://docs.jquery.com/Ajax/load[/url]... have a single page containing the template with links that call that function.
Otherwise what birkett said
[QUOTE=birkett;18277363]Server side includes? (Needs to be enabled on the server though)
[code]
<!--#include virtual="header.html" -->
[/code][/QUOTE]
Server side includes? (Needs to be enabled on the server though)
[code]
<!--#include virtual="header.html" -->
[/code]
Wait, you don't have server support on your computer or you don't on the webserver?
For the first, check out [url=http://www.apachefriends.org/en/xampp.html]XAMPP[/url]
God help you for the second.
Seriously though, PHP is the way to do it, it's only <?php include("header.php"); ?>
(Yes I know he said he doesn't have it, I don't need another box fortress!)
Does the server support any server side programming languages? ASP, ASP.NET, JSP, Perl, Python, RoR? As it's very strange to have a server with just static html support. If you really do need support for server side programming we can help you find a host.
Sorry, you need to Log In to post a reply to this thread.