Solved

Global header

Posted on 2013-06-23
8
275 Views
Last Modified: 2013-06-24
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
Comment
Question by:Moizsaif123
  • 4
  • 4
8 Comments
 
LVL 58

Expert Comment

by:Gary
Comment Utility
I'm assuming php
<?php
include "/header.php";
?>

If not php what server are you on?
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
im using basic html, cant it be done using javascript
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
What server are you using? Apache, IIS ...?
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
Comment Utility
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
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
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
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
or we can use teamviewer to connect to my machine...any option can be good
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now