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.
|
|
|
|
|
![]() |
||
SSI and absolute file paths
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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
Thank you. |
|
|
|
#2
|
|||
|
|||
|
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
I can't remember. I just had my server admin let me use parent paths. |
|
#3
|
|||
|
|||
|
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 "../../../"
|
|
#4
|
|||
|
|||
|
Re: SSI and absolute file paths
You mean it's not in your webroot? You start the include from webroot
|
|
#5
|
|||
|
|||
|
Re: SSI and absolute file paths
Hmm, is there any way around that? Php includes perhaps?
|
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
Re: SSI and absolute file paths
So, is there any way i can still use inclues?
|
|
#8
|
|||
|
|||
|
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.
|
![]() |
| Tags |
| ssi, absolute, file, paths |
| Thread Tools | |
|
|
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 |