I don't understand how to interpret all of your <notation>...
How about show us the results of this, from both the <incs> folder and the
<incs><sprocs> folder:
on error resume next
response.write "<P>" & server.mappath(".")
response.write "<P>" & server.mappath("/")
response.write "<P>" & server.mappath("../../user-data/")
response.write "<P>" & server.mappath("../user-data/")
response.write "<P>" & server.mappath("/user-data/")
response.write "<P>" & server.mappath("../incs/")
I don't think any of us are in the business of figuring out ISP's wacky
storage conventions. I would be tempted to just put the database in a web
folder somewhere. Name it with an ASP extension, so that if anyone has the
motivation to actually find out where you keep your database file and what
you call it, they will still have to gain local access to the machine in
order to open it.
--
http://www.aspfaq.com/ (Reverse address to reply.)
[quoted text, click to view] "Laphan" <news@DoNotEmailMe.co.uk> wrote in message
news:O1qBhIapEHA.1688@TK2MSFTNGP10.phx.gbl...
> Hi Aaron
>
> Thanks for the prompt reply. In response:
>
> 1) I have no idea why I should use \ -- it makes about as much sense as
> using /, but my ISP sent me an example with \ in it. To me they seem to
> make no diff either way.
>
> 2) I've tried the /user-data/pics and it kept saying path not found. I
> don't know why it irritating. How does this ../ thing work anyway? If I
> set it to this it works, but I just don't know why
>
> Your help (as always) is appreciated.
>
> Rgds Laphan
>
>
> Aaron [SQL Server MVP] <ten.xoc@dnartreb.noraa> wrote in message
> news:eIkt6EapEHA.324@TK2MSFTNGP11.phx.gbl...
> > 1) There is no difference in putting '/' or '\' in the Server.MapPath
> param,
> > eg Server.MapPath("/fred/test.asp") or
Server.MapPath("\fred\test.asp") -
> > they work the same - correct?
>
> I wouldn't expect them to. Why would you use \ ?
>
> > Now this is where the weirdie comes. If my ASP inc file is in the
> > <incs><sprocs> level my Server.MapPath for accessing the <pics> folder
is
> > "../user-data/pics/", however if I have an ASP inc file in the <incs>
> level
> > then my MapPath is "../../user-data/pics"
>
> Why the ../ ? Did you try /user-data/pics/ in both places?
>
> --
>
http://www.aspfaq.com/ > (Reverse address to reply.)
>
>
>
>