Newbie - Include File

Discussion in 'ASP General' started by TNGgroup, Jul 29, 2004.

  1. TNGgroup

    TNGgroup Guest

    Hi,

    Strange things:
    I'm using an ASP page in a subfolder, with an include.
    but when using ...inlcude file="../fileintheroot.html".
    I'm getting an error (An error occured on the server ....)

    When I move the file into the subdir, so without the ../, it works fine.

    I also tried to use the full path 'htttp://server.com/fileintheroot.html",
    but same result.

    This is quite stupid ofcourse, I cannot put all my files into the same dir ?

    Thanks

    TNG
    TNGgroup, Jul 29, 2004
    #1
    1. Advertising

  2. TNGgroup

    Bã§TãRÐ Guest

    New security settings have been implimented in ASP that dont allow include files as they once were.

    try <!-- #include virtual = "/fileintheroot.html" --> that should work


    - Bastard


    On Thu, 29 Jul 2004 10:52:54 +0200, "TNGgroup" <> wrote:

    >Hi,
    >
    >Strange things:
    >I'm using an ASP page in a subfolder, with an include.
    >but when using ...inlcude file="../fileintheroot.html".
    >I'm getting an error (An error occured on the server ....)
    >
    >When I move the file into the subdir, so without the ../, it works fine.
    >
    >I also tried to use the full path 'htttp://server.com/fileintheroot.html",
    >but same result.
    >
    >This is quite stupid ofcourse, I cannot put all my files into the same dir ?
    >
    >Thanks
    >
    >TNG
    >
    Bã§TãRÐ, Jul 29, 2004
    #2
    1. Advertising

  3. TNGgroup

    TNGgroup Guest

    IT works, thx !!!

    "Bã§TãRÐ" <> wrote in message
    news:...
    > New security settings have been implimented in ASP that dont allow include

    files as they once were.
    >
    > try <!-- #include virtual = "/fileintheroot.html" --> that should work
    >
    >
    > - Bastard
    >
    >
    > On Thu, 29 Jul 2004 10:52:54 +0200, "TNGgroup" <> wrote:
    >
    > >Hi,
    > >
    > >Strange things:
    > >I'm using an ASP page in a subfolder, with an include.
    > >but when using ...inlcude file="../fileintheroot.html".
    > >I'm getting an error (An error occured on the server ....)
    > >
    > >When I move the file into the subdir, so without the ../, it works fine.
    > >
    > >I also tried to use the full path

    'htttp://server.com/fileintheroot.html",
    > >but same result.
    > >
    > >This is quite stupid ofcourse, I cannot put all my files into the same

    dir ?
    > >
    > >Thanks
    > >
    > >TNG
    > >

    >
    TNGgroup, Jul 29, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Victor Bazarov

    #include "file" -vs- #include <file>

    Victor Bazarov, Mar 5, 2005, in forum: C++
    Replies:
    4
    Views:
    525
    Exits Funnel
    Mar 6, 2005
  2. PTM
    Replies:
    1
    Views:
    321
    Andy Dingley
    Nov 12, 2007
  3. naveeddil
    Replies:
    0
    Views:
    555
    naveeddil
    Jan 4, 2008
  4. Andreas Bogenberger
    Replies:
    3
    Views:
    889
    Andreas Bogenberger
    Feb 22, 2008
  5. Eric
    Replies:
    10
    Views:
    451
Loading...

Share This Page