|
| Notices |
Welcome to the DriverHeaven.net forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
 |
Jul 1, 2002, 04:11 AM
|
#1
|
|
Yarr... I be blind!
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
|
Linking to an external HTML file.
OK with php you can go:
<? Include "templates/header.htm"; ?>
but what if I have a host who doesn't support PHP? Is there a way to do that same fuction without php?
|
|
|
Jul 1, 2002, 05:04 AM
|
#2
|
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,256
|
If the server can use Server Side Includes then you can use
Code:
<!--#include virtual="http://foo.bar.com/this.html"-->
AFAIK you cannot do clientside linking in pure HTML
You could use DTHML and javascript, but that would be kludgy and may not work on some browsers
|
|
|
Jul 1, 2002, 12:39 PM
|
#3
|
|
BSD SMASH!
Join Date: May 2002
Location: A rabbit hole. . .
Posts: 1,169
|
What he said. I was going to suggest PHP, but you seem to have that covered.
|
|
|
Jul 1, 2002, 01:00 PM
|
#4
|
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,256
|
Re: Linking to an external HTML file.
Quote:
Originally posted by Cyborg
OK with php you can go:
<? Include "templates/header.htm"; ?>
|
You should really be using <?php instead of <? as <? is also used to define XML namespaces - it can confuse browsers if the servers PHP config is borked
|
|
|
Jul 1, 2002, 02:40 PM
|
#5
|
|
Yarr... I be blind!
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
|
Yeah I know, but <? is fine for me  and if it was like that on this server, DP uses <? for like every PHP tag in it  So that would make DH really messed.
I guess I could use <?php though.
|
|
|
Jul 1, 2002, 03:54 PM
|
#6
|
|
Yarr... I be blind!
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
|
Well the server does support SSI so I am happy, thanks Uber.
|
|
|
Jul 1, 2002, 04:06 PM
|
#7
|
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,256
|
Re:
Quote:
Originally posted by Cyborg
Well the server does support SSI so I am happy, thanks Uber.
|
np - Invoice is in the post 
|
|
|
Jul 1, 2002, 04:10 PM
|
#8
|
|
Yarr... I be blind!
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
|
How much is it?
|
|
|
|
|
|