include or use a file outside the we broot directiry.
include or use a file outside the we broot directiry.
am 11.04.2005 10:42:30 von fabrice
Hello,
Is it possible to include a file in a web application which is outside the
web path (without virtual directory).
- Or use a file in SRC (html code) for example -
Language is ASP with IIS6.
for example :
physical web path application:
e:\myapplication.
= http:\\www.myweb.net
other directory, outside
d:\securitypath
how to include a file locate in d:\securitypath by using INCLUDE or for
example
Can i use serverpath ?
thanks a lot
have a nice day.
fabrice
Re: include or use a file outside the we broot directiry.
am 11.04.2005 15:26:39 von jeff.nospam
On Mon, 11 Apr 2005 10:42:30 +0200, "fabrice"
wrote:
>Is it possible to include a file in a web application which is outside the
>web path (without virtual directory).
Sure.
>- Or use a file in SRC (html code) for example -
>
>Language is ASP with IIS6.
>
>for example :
>
>physical web path application:
>e:\myapplication.
>= http:\\www.myweb.net
>
>
>other directory, outside
>d:\securitypath
>
>how to include a file locate in d:\securitypath by using INCLUDE or for
>example
>
>Can i use serverpath ?
No. Ther server path is from the root of the web, so if it's not in
the web hiearchy you can't get to it. You need the actual path.
The major issue people run into is permissions. You may have to
specify the NTFS permissions for the file/folder manually. One thing
I do for example is put Access database fiels outside the web root. I
have a folder for them with the correct permissions, and all the
databases go there. This folder is off the drive root so I don't have
to worry about inherited permissions or anything.
Jeff
Re: include or use a file outside the we broot directiry.
am 11.04.2005 16:20:35 von fabrice
Thanks a lot
fab
"Jeff Cochran" a écrit dans le message de news:
425a7a56.1551529671@msnews.microsoft.com...
> On Mon, 11 Apr 2005 10:42:30 +0200, "fabrice"
> wrote:
>
>>Is it possible to include a file in a web application which is outside the
>>web path (without virtual directory).
>
> Sure.
>
>>- Or use a file in SRC (html code) for example -
>>
>>Language is ASP with IIS6.
>>
>>for example :
>>
>>physical web path application:
>>e:\myapplication.
>>= http:\\www.myweb.net
>>
>>
>>other directory, outside
>>d:\securitypath
>>
>>how to include a file locate in d:\securitypath by using INCLUDE or for
>>example
>>
>>Can i use serverpath ?
>
> No. Ther server path is from the root of the web, so if it's not in
> the web hiearchy you can't get to it. You need the actual path.
>
> The major issue people run into is permissions. You may have to
> specify the NTFS permissions for the file/folder manually. One thing
> I do for example is put Access database fiels outside the web root. I
> have a folder for them with the correct permissions, and all the
> databases go there. This folder is off the drive root so I don't have
> to worry about inherited permissions or anything.
>
> Jeff
Re: include or use a file outside the we broot directiry.
am 11.04.2005 16:52:51 von fabrice
Sorry,
but i have a problem with this solution.
My web application directory is : e:\webapplication.
My other diectory is e:\base
I store a file, for example "file.inc" in the directory e:\base
From the default page of my application, i write
When i'm executing the application, i have this error --> Active Server
Pages (ASP) error 'ASP 0126'
I have established the full ntfs permission for the user IUSR_SERVER1. on
the directory e:\base.
Can you help me ?
Thanks fabrice
"Jeff Cochran" a écrit dans le message de news:
425a7a56.1551529671@msnews.microsoft.com...
> On Mon, 11 Apr 2005 10:42:30 +0200, "fabrice"
> wrote:
>
>>Is it possible to include a file in a web application which is outside the
>>web path (without virtual directory).
>
> Sure.
>
>>- Or use a file in SRC (html code) for example -
>>
>>Language is ASP with IIS6.
>>
>>for example :
>>
>>physical web path application:
>>e:\myapplication.
>>= http:\\www.myweb.net
>>
>>
>>other directory, outside
>>d:\securitypath
>>
>>how to include a file locate in d:\securitypath by using INCLUDE or for
>>example
>>
>>Can i use serverpath ?
>
> No. Ther server path is from the root of the web, so if it's not in
> the web hiearchy you can't get to it. You need the actual path.
>
> The major issue people run into is permissions. You may have to
> specify the NTFS permissions for the file/folder manually. One thing
> I do for example is put Access database fiels outside the web root. I
> have a folder for them with the correct permissions, and all the
> databases go there. This folder is off the drive root so I don't have
> to worry about inherited permissions or anything.
>
> Jeff