ScottInTexas
05-14-2003, 10:56 PM
I am developing a web site on my desk top using the personal web server. I have created the virtual directory and placed my scripts and pages there. The root has the file default.asp and that has an include statement to call the home page from the sub directory.
A couple of days ago the default would call the home page and display it in the browser as expected, but now it can't even find it.
Here is the call in the root directory default.asp
<body>
<!--#include virtual ="/dwsurveyor/home.asp"-->
</body>
And here is the top of the Home.asp page.
<head>
<!-- #include virtual="/dwsurveyor/funcs.asp" -->
<% response.write("<link rel='stylesheet' href='styles.css' type='text/css' />")%>
The error message is;
Active Server Pages error 'ASP 0126'
Include file not found
/dwsurveyor/home.asp, line 4
The include file '/funcs.asp' was not found.
Apparently I am having trouble with the addressing of sub directories. The root directory (wwwroot) is equal in the heirarchy to the directory containing my files (dwsurveyor).
I don't know what I have changed, but something has caused this not to look at the virtual directory listing or something. AGGGGH!
In addition when I FTP this to the actual server my default is going to reside in the /dwsurveyor directory on the server. Should all my files be in the same directory? And what about security? I thought that was why the executables went into a sub folder so people wouldn't have browse access to them.
Any help would be greatly appreciated.
A couple of days ago the default would call the home page and display it in the browser as expected, but now it can't even find it.
Here is the call in the root directory default.asp
<body>
<!--#include virtual ="/dwsurveyor/home.asp"-->
</body>
And here is the top of the Home.asp page.
<head>
<!-- #include virtual="/dwsurveyor/funcs.asp" -->
<% response.write("<link rel='stylesheet' href='styles.css' type='text/css' />")%>
The error message is;
Active Server Pages error 'ASP 0126'
Include file not found
/dwsurveyor/home.asp, line 4
The include file '/funcs.asp' was not found.
Apparently I am having trouble with the addressing of sub directories. The root directory (wwwroot) is equal in the heirarchy to the directory containing my files (dwsurveyor).
I don't know what I have changed, but something has caused this not to look at the virtual directory listing or something. AGGGGH!
In addition when I FTP this to the actual server my default is going to reside in the /dwsurveyor directory on the server. Should all my files be in the same directory? And what about security? I thought that was why the executables went into a sub folder so people wouldn't have browse access to them.
Any help would be greatly appreciated.