SSI and absolute file paths

This is a discussion on "SSI and absolute file paths" within the Classic ASP section. This forum, and the thread "SSI and absolute file paths are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 30th, 2006, 02:52
New Member
Join Date: Mar 2006
Age: 89
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation SSI and absolute file paths

Good day. I primarily use server side includes on my server and have run into a problem. I have a shtml file in "/images/files/wallpaper/files/" that needs to include a html file in the root dir. What can I do if I cannot use absolute paths "../../../"?
I have tried to use
Code: Select all
<!--#include file="http://www.cyroxos.net/main.html" -->
and "include virtual=" with no success.

Thank you.
Reply With Quote

  #2 (permalink)  
Old Mar 30th, 2006, 14:15
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

If I recall correctly, you don't use the domain part.

So if your file is index.html
and the file you want to include is in /includes/header.html

then you would write
Code: Select all
 <!--#include file="/include/header.html" -->
Maybe not without the leading / ?
I can't remember. I just had my server admin let me use parent paths.
Reply With Quote
  #3 (permalink)  
Old Mar 30th, 2006, 18:03
New Member
Join Date: Mar 2006
Age: 89
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

That is the problem.. the file path is up and I have no idea how to reference it without using "../../../"
Reply With Quote
  #4 (permalink)  
Old Mar 30th, 2006, 18:35
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

You mean it's not in your webroot? You start the include from webroot
Reply With Quote
  #5 (permalink)  
Old Mar 30th, 2006, 18:41
New Member
Join Date: Mar 2006
Age: 89
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

Hmm, is there any way around that? Php includes perhaps?
Reply With Quote
  #6 (permalink)  
Old Mar 30th, 2006, 19:03
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

I don't know, you would have to ask that in the php forum. I've always done my includes from within webroot.
Reply With Quote
  #7 (permalink)  
Old Mar 31st, 2006, 02:06
New Member
Join Date: Mar 2006
Age: 89
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

So, is there any way i can still use inclues?
Reply With Quote
  #8 (permalink)  
Old Mar 31st, 2006, 13:46
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SSI and absolute file paths

Well, it depends on what you're including. If you're including something from another website, you could download it and then put it in your webroot. Otherwise I would need more information about why this file isn't in your webroot and can't be moved there.
Reply With Quote
Reply

Tags
ssi, absolute, file, paths

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ie6 absolute div problem bilsland Web Page Design 1 Apr 29th, 2008 12:43
When is it ok to use Absolute Positioning ?? slimboyfatz32 Web Page Design 31 Feb 6th, 2008 17:25
Cerification And qualification paths Accurax Webforumz Cafe 5 May 21st, 2007 22:12
absolute positioning micker Flash & Multimedia Forum 1 May 21st, 2007 19:17
Absolute nOOb at this needs help! beatlesteve PHP Forum 1 Oct 13th, 2005 07:22


All times are GMT. The time now is 09:51.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43