• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Global header

I have this Cpanel site I am developing, included are many pages in the navigation menu. Although to change the links in the header of all those pages I have to goto each one individually
http://iphosting.info/

How do I make the header and footer static so its global for the whole site.
0
Moizsaif123
Asked:
Moizsaif123
  • 4
  • 4
1 Solution
 
GaryCommented:
I'm assuming php
<?php
include "/header.php";
?>

If not php what server are you on?
0
 
Moizsaif123Author Commented:
im using basic html, cant it be done using javascript
0
 
GaryCommented:
What server are you using? Apache, IIS ...?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Moizsaif123Author Commented:
i think it is IIS, because when i use this code below it gave me the response


<%
response.write("My first ASP script!")
%>

Open in new window

0
 
GaryCommented:
In IIS make sure SSI is enabled
http://tech.mikeal.com/blog1.php/server-side-includes-for-html-in-iis7

Then use
<!--#include virtual="insertthisfile.html" -->
0
 
Moizsaif123Author Commented:
This is not fully resolved. I could not find the IIS cze I think the host is running apache .If you know how to setup apache on my webserver using the CPanel, I can create a ticket and tell u my credentials to help me out.
0
 
Moizsaif123Author Commented:
or we can use teamviewer to connect to my machine...any option can be good
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now