Solved

Global header

Posted on 2013-06-23
8
280 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
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)

809 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