The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> External HTTML, how to add a header to all html pages
falcon
post May 5 2020, 10:28 PM
Post #1


Newbie
*

Group: Members
Posts: 16
Joined: 30-August 14
Member No.: 21,482



External HTML
how to add a header to all html pages
from: css-tricks
<?php include "./header.html" ?>
- -- -
I could not get it to work
I tried "./header.html"
"header.html"
what should be on the external html?
I tried "header.html"
"./header.html"
Thank You for your time and help
falcon
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
falcon
post May 5 2020, 10:31 PM
Post #2


Newbie
*

Group: Members
Posts: 16
Joined: 30-August 14
Member No.: 21,482



External HTML
how to add a header to all html pages
from: css-tricks
<?php include "./header.html" ?>
- -- -
I could not get it to work
I tried "./header.html"
"header.html"
what should be on the external html?
I tried "header.html"
"./header.html"
Thank You for your time and help
falcon
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post May 6 2020, 01:11 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 1,730
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



include is a PHP command. Does your web server have PHP installed?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 6 2020, 03:50 AM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,821
Joined: 9-August 06
Member No.: 6



Where do you have the file that should be included? Is PHP available to you? What happens? Do you get an error? Is the include line printed on the page?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 6 2020, 03:55 AM
Post #5


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,821
Joined: 9-August 06
Member No.: 6



Topics merged. ninja.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 5th June 2020 - 06:33 PM