• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Software / Tools > Programming, Coding, (Web)Design

Notices

Reply
 
LinkBack Thread Tools
Old Jul 1, 2002, 04:11 AM   #1
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
Jeff is on a distinguished road

Default Post 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?
Jeff is offline   Reply With Quote
Old Jul 1, 2002, 05:04 AM   #2
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
UberLord is on a distinguished road

Default Post

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
UberLord is offline   Reply With Quote
Old Jul 1, 2002, 12:39 PM   #3
BSD SMASH!
 
Malus's Avatar
 
Join Date: May 2002
Location: A rabbit hole. . .
Posts: 1,169
Malus is on a distinguished road

Default Post

What he said. I was going to suggest PHP, but you seem to have that covered.
Malus is offline   Reply With Quote
Old Jul 1, 2002, 01:00 PM   #4
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
UberLord is on a distinguished road

Default Post 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
UberLord is offline   Reply With Quote
Old Jul 1, 2002, 02:40 PM   #5
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
Jeff is on a distinguished road

Default Post

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.
Jeff is offline   Reply With Quote
Old Jul 1, 2002, 03:54 PM   #6
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
Jeff is on a distinguished road

Default Post

Well the server does support SSI so I am happy, thanks Uber.
Jeff is offline   Reply With Quote
Old Jul 1, 2002, 04:06 PM   #7
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
UberLord is on a distinguished road

Default Post Re:

Quote:
Originally posted by Cyborg
Well the server does support SSI so I am happy, thanks Uber.
np - Invoice is in the post
UberLord is offline   Reply With Quote
Old Jul 1, 2002, 04:10 PM   #8
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,177
Jeff is on a distinguished road

Default Post

How much is it?
Jeff is offline   Reply With Quote
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 06:38 PM. Copyright ©2008 HeavenMedia.net