a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

virtual includes

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> virtual includes
Page: [1]
 
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
virtual includes - 12/17/2004 8:23:20   
<!--#INCLUDE VIRTUAL="../INCLUDES/ChangeAgents.txt"-->

This doesn't work on my IIS box or on my webhosts IIS box - does anyone know why? It's started that "head-boiling" feeling in me again!

It doesn't work with ANY of my include files, and I'm getting tired of having to put mulitple includes throughout the dir structure (which sort of goes against the idea of having them in the first place)
Nigel

 

Posts: 383
Joined: 7/24/2002
From: Wirral - UK
Status: offline

 
RE: virtual includes - 12/17/2004 8:45:30   
Some web hosts don't support virtual includes. I know my own host only supports it with dedicated servers.

Nigel

_____________________________

Innerview
Web Design - Virtual Tours - 360 Panoramas - Shopping carts

(in reply to yogaboy)
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
RE: virtual includes - 12/17/2004 8:48:19   
Cheers Nigel, I will get straight on to my web hosts!

(in reply to Nigel)
Shirley

 

Posts: 3127
Joined: 1/8/1999
From: Omaha, Ne USA
Status: offline

 
RE: virtual includes - 12/17/2004 10:07:17   
If you are saying that it works in the same directory but does not work if it is in its own directory you may need to enable parent paths on the server

_____________________________


Everything But Cake


(in reply to yogaboy)
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
RE: virtual includes - 12/17/2004 10:15:54   
I contacted the hosts and they told me some crazy things which didn't work - then I started going through every combination of /'s and dir's - all of a sudden it started working, so I think that's what they did!:)

<!--#INCLUDE VIRTUAL="INCLUDES/ChangeAgents.txt"--> now works.

(in reply to Shirley)
bobby

 

Posts: 11399
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: virtual includes - 12/17/2004 10:39:30   
The difference in what you've done is this:

../Includes/file.txt

The ../ tells the server to go "up" one directory level to locate the Includes directory.

Includes/file.txt

This tells the server that the Includes file is on the same directory tree level as the page that's calling the include.



_____________________________

In order to remove a wall you must first remove the Windows®


:)

(in reply to yogaboy)
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
RE: virtual includes - 12/17/2004 10:47:50   
I know! My tree is

parent/MEMBERS_AREA
parent/INCLUDES

I was calling the file in INCLUDES from MEMBERS_AREA

I should point out, that now I can't call the includes from files in the parent. This is so strange!

<!--#INCLUDE VIRTUAL="INCLUDES/ChangeAgents.txt"--> does not find the include if I use it in the parent dir, but it does work from MEMBERS_AREA...

(in reply to bobby)
Spooky

 

Posts: 26617
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: virtual includes - 12/17/2004 13:13:28   
<!--#INCLUDE VIRTUAL="/INCLUDES/ChangeAgents.txt"-->

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to yogaboy)
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
RE: virtual includes - 12/18/2004 11:54:03   
Cool, that works. Thanks to one and all!!

(in reply to Spooky)
aaronwiles

 

Posts: 200
Joined: 7/5/2004
From: Aaron Wiles
Status: offline

 
RE: virtual includes - 1/1/2005 20:39:54   
Your seem to be getting file & virtual includes confused.

A file include is directory specific, a virtual include always starts from the home directory.

E.G. www.domain.co.uk/common/includes/header.asp, would be included in page "page.asp" located in directory www.domain.co.uk/members/ as...

File include: <!--#INCLUDE FILE="../common/includes/header.asp"-->
Virtual include: <!--#INCLUDE VIRTUAL="common/includes/header.asp"-->

I hope that now explains the differance.

_____________________________

You really never learn to swear until you get a computer.

(in reply to yogaboy)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> virtual includes
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts