Welcome to the GoFuckYourself.com - Adult Webmaster Forum 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 us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-14-2004, 08:16 AM   #1
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
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 ?
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 08:29 AM   #2
RFlagg
Confirmed User
 
Join Date: Oct 2003
Location: Apollo Beach, FL
Posts: 128
It would help to know what language you are trying to use this with...


__________________

Programming/System Admin/Security
ICQ 2 2 2 1 9 2 2 1 0
RFlagg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 08:32 AM   #3
Shooter
Confirmed User
 
Join Date: Apr 2001
Posts: 2,842
SSI includes right?

Can you type out exactly how you're coding it, and where the files are respectively to each other
Shooter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 08:37 AM   #4
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
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" -->
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 08:44 AM   #5
Shooter
Confirmed User
 
Join Date: Apr 2001
Posts: 2,842
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.
Shooter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 08:50 AM   #6
Viper2K1
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 1,006
use include virtual instead of include file
__________________
Spank me
Dude, where's my traffic?
Viper2K1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 08:51 AM   #7
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
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" -->
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 09:33 AM   #8
DarkJedi
No Refunds Issued.
 
DarkJedi's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: GFY
Posts: 28,300
thanks guys, it worked
DarkJedi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-14-2004, 09:35 AM   #9
Doc911
Confirmed User
 
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
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" -->
__________________


For PHP/MySQL scripts ICQ 161480555 or email [email protected]
Doc911 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.