Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Physical Include
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Physical Include

 Post Reply Post Reply Page  12>
Author
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Topic: Physical Include
    Posted: 24 May 2004 at 2:44am

Can I include a file using the Physical Path?

I tried this but it didn't work out:
<!--#include file="C:\hshome\zMaestro\egy\inc.asp"-->

Originally posted by Error Error wrote:


Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'C:\hshome\zMaestro\egy\inc.asp' was not found.
/egy/zMaestro/egyAuto/Home.asp, line 1


 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 8:47am
I think I've done this before. Did you try it with the / changed to \

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 9:37am
he has used \

try to use D:\hshome\...
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 10:51am

I used \ and / both didn't work

I can't put it on Drive D

The error says that the file is not found... and this is a strange error

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 11:22am
your path looks exactly like the paths Jodohost uses.. except for they use the D drive and not the C drive.. so if you are hosting with jodo, try D

you can also place Response.Write Server.MapPath("\") in a script on your site and you will get the full physical path on the screen..

I'm quite sure you get this error because IIS can't find the file where you have said it is..
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 2:53pm

that's because both of the servers are using HSphere control Panel.

 

can you give it a try and check including using this way (Full Physical Path), I am sure the file exists.

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 3:33pm
oh, so that's a common HSphere path, ok..

I thought this was possible, but maybe it's not.. it didn't work with me either..

but isn't is possible to use relative paths?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2004 at 7:06pm

pulled this from one of my scripts refencing a file outside of the webroot

Server.MapPath("../../xx/yy/myfile.asp")


Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  12>

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.