IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 11th, 2004, 01:47 PM
fetlock fetlock is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 fetlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Virtual Directories, includes, & getting correct paths???

Hi,

I'm trying to have 1 folder for include files that can be called from other files on root, in subfolders below root, and in subfolders under other sub-level folders.

What approach should I take? Here's what I've tried:

First, Tried regular #include file=inc/filename, and that works, but then I need to make different versions of the same code for each folder level that will call the include files. (ie, 1 level below root gets "#include file=../inc/filename for the include and links & images have "../" before their path, too. It works but the multiple copies of the code is an issue for updating.

Second, tried virtual #include virtual=include/filename, and that works, created the virtual folder include to point to the actual inc folder, it gets the file ok, it displays it ok, but then the links & images are still relative to the the file that called them (some sub folder), not where the include file is at (inc in root).

What else can I try? It is possible, right?

Can't really use full path (URL.....) for include, links & images as this needs to move from test server to prod, etc, w/o changing contents of files.

I thought about base href, but a) that's in head tags only, and b) that'd set the whole page ....

Reply With Quote
  #2  
Old March 11th, 2004, 02:36 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,716 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 33 m 54 sec
Reputation Power: 688
Try using include virtual from the top of your website

#include virtual="/images/somefile.asp"
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old March 12th, 2004, 02:23 PM
fetlock fetlock is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 fetlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok, got it!

Though our virual was on the root, and we did use /, it also needed a change in IIS, site properties, local path.

Otherwise we were so close, yet still not getting it. Now, all three pieces work together as they should.

Whew.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Virtual Directories, includes, & getting correct paths???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway