Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Global header

Posted on 2013-06-23
8
Medium Priority
?
286 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
ID: 39269765
I'm assuming php
<?php
include "/header.php";
?>

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

Author Comment

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

Expert Comment

by:Gary
ID: 39269806
What server are you using? Apache, IIS ...?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Author Comment

by:Moizsaif123
ID: 39269891
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
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39269959
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
ID: 39271757
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
ID: 39271787
or we can use teamviewer to connect to my machine...any option can be good
0
 
LVL 58

Expert Comment

by:Gary
ID: 39271807
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

916 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