GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   <!--#include virtual="footer.html" --> (https://gfy.com/showthread.php?t=341513)

Makingcoin 08-15-2004 10:18 PM

<!--#include virtual="footer.html" -->
 
Can you hard link a virtual include? For example,

<!--#include virtual="http://www.blah.com/mc/footer.html" -->

And you have numerous directories with html files that use that footer.html file? Or do i have to upload the footer.html to each specific directory and use <!--#include virtual="footer.html" -->?

:helpme

Fabuleux 08-15-2004 10:33 PM

You can "hard" link it. I do it all the time. Menu's, headers, footers, etc. etc. Saves a lot of time when something needs to be changed.

Jdoughs 08-15-2004 10:35 PM

Quote:

Originally posted by Makingcoin
Can you hard link a virtual include? For example,

<!--#include virtual="http://www.blah.com/mc/footer.html" -->

And you have numerous directories with html files that use that footer.html file? Or do i have to upload the footer.html to each specific directory and use <!--#include virtual="footer.html" -->?

:helpme

Yep works for SSI and php

Makingcoin 08-15-2004 10:41 PM

arggg

I keep getting:

[an error occurred while processing this directive]

Jdoughs 08-15-2004 10:43 PM

Quote:

Originally posted by Makingcoin
arggg

I keep getting:

[an error occurred while processing this directive]

Does it still have blah.com as the url?..:Graucho

Maybe SSI isnt on the other box?

Fabuleux 08-15-2004 10:44 PM

Is your file named .SHTML instead of .HTML?

Makingcoin 08-15-2004 10:47 PM

Quote:

Originally posted by Jdoughs
Does it still have blah.com as the url?..:Graucho

Maybe SSI isnt on the other box?

Same server. same domain..

Makingcoin 08-15-2004 10:50 PM

Quote:

Originally posted by Fabuleux
Is your file named .SHTML instead of .HTML?
yes

fuzebox 08-15-2004 11:08 PM

You should be using PHP :)

<? include "http://www.blah.com/path/to/footer.html; ?>

:glugglug

Jdoughs 08-15-2004 11:09 PM

Quote:

Originally posted by fuzebox
You should be using PHP :)

<? include "http://www.blah.com/path/to/footer.html; ?>

:glugglug

I find php way more nicer to use for that as well.

ztik 08-15-2004 11:13 PM

you need to use a directory structure on your local server when using ssi. as far as i know you can't pull from other sites or files located on other servers.

you are able to use /dir/bah.txt

i'm not sure if using a html file will work either, you could try renaming it to txt (it will still output it as html)

JulianSosa 08-15-2004 11:13 PM

Quote:

Originally posted by Jdoughs
I find php way more nicer to use for that as well.

I was going to say the same thing. You can even keep the pages .html and add a line to your .htaccess

Richyp 08-15-2004 11:45 PM

you CANT hardlink using SSI - at least I have never been able to do it - those claiming to have done it either have a special server setup or are talking out their arses :)

As the last couple of guys said - php is the way to go - you can hardlink as you need to do without any hassles.

:2 cents:


All times are GMT -7. The time now is 06:46 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123