Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - PWS problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PWS problem

 Post Reply Post Reply
Author
OTG! View Drop Down
Newbie
Newbie
Avatar

Joined: 04 April 2002
Location: United Kingdom
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote OTG! Quote  Post ReplyReply Direct Link To This Post Topic: PWS problem
    Posted: 11 April 2003 at 9:11am

I have PWS set up on my laptop with Windows 98. When trying to run the server, I have a test ASP website which is stored in a folder above the root (wwwroot)

Therefore I have...

file/default.asp
file/header.asp

In the default.asp file I use the include method to put the header.asp into the top of my page. Yet my PWS Server can't find it - it says that "header.asp" is not found. What I suspect is that it is trying to look for the header.asp file in the root directory instead of the "file" directory. I have Directory browsing switched on in the control panel of PWS and it makes no difference.

What can I do to solve this problem? 

Back to Top
lobo View Drop Down
Groupie
Groupie
Avatar

Joined: 23 April 2002
Location: Spain
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote lobo Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2003 at 9:15am

 

As far as I know you must place everything in wwwroot or subdirectories of wwwroot.

 

Back to Top
OTG! View Drop Down
Newbie
Newbie
Avatar

Joined: 04 April 2002
Location: United Kingdom
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote OTG! Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2003 at 2:37pm
Originally posted by lobo lobo wrote:

 

As far as I know you must place everything in wwwroot or subdirectories of wwwroot.

 

I've done that - it's in a sub-directory of wwwroot, but it is asking for a file in the root of wwwroot, and not in the subdirectory where it is.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 11 April 2003 at 5:03pm

Show the include statement you are using..

 

Back to Top
OTG! View Drop Down
Newbie
Newbie
Avatar

Joined: 04 April 2002
Location: United Kingdom
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote OTG! Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2003 at 1:43pm

sorry for leaving this on the back burner for the last couple of weeks, my include statement is as follows...

<!--#include virtual="header.asp"-->

 

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2003 at 2:28pm
Would have to be
<!--#include virtual="file/header.asp"-->
as virtual always goes from the root of your website..
Back to Top
OTG! View Drop Down
Newbie
Newbie
Avatar

Joined: 04 April 2002
Location: United Kingdom
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote OTG! Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2003 at 5:23pm

Ok, so is there any tag that can be used like say <!--#include file ?

Another computer that I'm using doesn't have the above problem for me.

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2003 at 9:03am
It all depends how your web is set up. you can use <!--#include file="../folder/file.asp"--> which then starts from the location you are calling it...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.