Click to See Complete Forum and Search --> : Virtual includes don't work locally


rincewind
05-30-2003, 03:57 AM
Hi,
I'm running a local server with windows 2000 to develop my .asp code before transferring to my remote. When I use include files the pages can never find the virtual includes, only the file includes. Is there a setting to allow virtual includes to work locally? (they work fine when transferred to the remote.)
Thanks

rincewind
05-30-2003, 09:25 AM
Yes I was aware of the differnces between file and virtual. So how do I set one up on my pc?

rincewind
05-30-2003, 08:59 PM
ok, basically, if I set a the path to an include file using the exact location relative to the asp file i.e. if i have to go to the parent directory I use ../foldername/filename.inc but if I use the virtual include code /foldername/filename.inc it doesn't work on my pc but it works on the remote. Are virtual include links supposed to work on my pc?

rincewind
05-31-2003, 08:20 AM
Ok maybe that wasn't the best example.
I understand that the virtual directory is the path to the include file from the root folder, regardless of where the asp file is? and the
<!-- #include file="../foldername/filename.inc" -->
is the path from where the asp file is.
I still need to know if you have to set up a virtual file system or what as the virtual paths work on my remote and not on my pc.

Here's a specific example of my problem in order to access banner.inc from my asp file on my pc i have to use
<!--#include file="../../includes/banner.inc"-->

with a virtual link
<!--#include virtual="/news/includes/banner.inc"-->

news is a folder in the root directory.

Thanks.

rincewind
05-31-2003, 08:59 AM
so you've no idea why the virtual paths won't work on my pc when the same paths work on the remote server?
What are the beneifts or using either?

rincewind
05-31-2003, 09:16 AM
grand, thanks, i think i'll stick to file rather than virtual so. I thought there was some great benifit I was missing out on!
Thank again

sheila
05-31-2003, 01:06 PM
Actually, to my understanding ... file can reference only the folder the ASP page is in or any folder below that specific folder;

<!-- #include file="../../../foldername/filename.inc" -->
Works fine for me.