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)
-   -   Having problems with #include file="..." (https://gfy.com/showthread.php?t=312325)

DarkJedi 06-14-2004 08:16 AM

Having problems with #include file="..."
 
it works only from the same directory - like if i put ads.html in www.site.com/dir1/

but i want it to work from root - like put ads.html in www.site.com/


any ideas why it wont work from root ?

RFlagg 06-14-2004 08:29 AM

It would help to know what language you are trying to use this with...


:2 cents:

Shooter 06-14-2004 08:32 AM

SSI includes right?

Can you type out exactly how you're coding it, and where the files are respectively to each other

DarkJedi 06-14-2004 08:37 AM

Quote:

Originally posted by Shooter
SSI includes right?

Can you type out exactly how you're coding it, and where the files are respectively to each other

yeah SSI

It works like this:
<1--#include file="ads.html" -->


But doesnt work like this:
<1--#include file="../dir/ads.html" -->

or like this:
<1--#include file="www.site.com/dir/ads.html" -->

Shooter 06-14-2004 08:44 AM

Quote:

Originally posted by DarkJedi
yeah SSI

It works like this:
<1--#include file="ads.html" -->


But doesnt work like this:
<1--#include file="../dir/ads.html" -->

or like this:
<1--#include file="www.site.com/dir/ads.html" -->

Hmm, as long as the files are in the right locations I don't notice anything wrong there.

Viper2K1 06-14-2004 08:50 AM

use include virtual instead of include file

Nathan 06-14-2004 08:51 AM

Quote:

Originally posted by DarkJedi
yeah SSI

It works like this:
<1--#include file="ads.html" -->


But doesnt work like this:
<1--#include file="../dir/ads.html" -->

or like this:
<1--#include file="www.site.com/dir/ads.html" -->

Hey, try virtual= instead of file=

ie,
<!--#include virtual="../ads.html" -->

DarkJedi 06-14-2004 09:33 AM

thanks guys, it worked :thumbsup

Doc911 06-14-2004 09:35 AM

Quote:

Originally posted by DarkJedi
yeah SSI


<1--#include file="www.site.com/dir/ads.html" -->

try <1--#include file="HTTP://www.site.com/dir/ads.html" -->


All times are GMT -7. The time now is 07:03 PM.

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