HardwareHeaven.com
Looking for the skin chooser?
 
 
  • Home

  • Reviews

  • Articles

  • News

  • Tools

  • GamingHeaven

  • Forums

  • Network

 

Go Back   HardwareHeaven.com > Forums > Software / Tools > Programming, Coding, (Web)Design


Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people.

Reply
 
Thread Tools
Old Jul 1, 2002, 11:11 AM   #1
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,190
Rep Power: 74
Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!

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, 12:04 PM   #2
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 70
UberLord will become famous soon enough

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
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old Jul 1, 2002, 07:39 PM   #3
BSD SMASH!
 
Malus's Avatar
 
Join Date: May 2002
Location: A rabbit hole. . .
Posts: 1,170
Rep Power: 0
Malus is on a distinguished road

Default Post

What he said. I was going to suggest PHP, but you seem to have that covered.
__________________
quad (FreeBSD/amd64 8-CURRENT): Intel Q6600 - Asus P5E-VM HDMI - 2x2 GB Kingston PC6400 DDR2 Ram - Seagate 320GB 7200RPM HD - 2xSeagate 1TB 7200RPM HD in RAID 1 via ZFS - Lite-On 20x DVD Multi Recorder - Coolermaster Centurion 5

router (FreeBSD/amd64 8-CURRENT):
Intel E4500 - Intel D945GCNL - 2 GB PC6400 Mushkin Ram - Lite-On 48x24x48x16 - Seagate 320GB 7200RPM HD - Silverstone SST-SG02-F

wanderer (FreeBSD/i386 7-CURRENT): Lenovo Thinkpad T61p

mini (OS X 10.5): Intel Core 2 Duo @ 1.8Ghz, 4 GB Mushkin PC5400 Ram -
Headroom MicroDAC

Portable sound: Rockboxed iPod Video -> Westone UM2's
Not-So-Portable Sound: Headroon MicroDAC -> Singlepower PPX3-SLAM -> Grado RS-1's or Beyerdynamic DT-880's
Very-Not-Portable-Sound: Squeezebox v3 -> Denon AVR-1507 -> B&W 683's & Sunfire HRS-10
Malus is offline   Reply With Quote
Old Jul 1, 2002, 08:00 PM   #4
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 70
UberLord will become famous soon enough

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
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old Jul 1, 2002, 09:40 PM Threadstarter Thread Starter   #5
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,190
Rep Power: 74
Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!

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, 10:54 PM Threadstarter Thread Starter   #6
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,190
Rep Power: 74
Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!

Default Post

Well the server does support SSI so I am happy, thanks Uber.
__________________
Jeff is offline   Reply With Quote
Old Jul 1, 2002, 11:06 PM   #7
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 70
UberLord will become famous soon enough

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
__________________
Gentoo Linux - Developer (baselayout)
Read my blog

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours."
Stephen Roberts
UberLord is offline   Reply With Quote
Old Jul 1, 2002, 11:10 PM Threadstarter Thread Starter   #8
Yarr... I be blind!
 
Jeff's Avatar
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,190
Rep Power: 74
Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!Jeff is just super!

Default Post

How much is it?
__________________
Jeff is offline   Reply With Quote
Reply

Bookmarks

Thread Tools