Include statement path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cracker Jacks

    Include statement path

    I am having trouble pointing an ASP file to another ASP for use in the
    include statement. I do not understand all the different paths that the
    server or the scripts use. Could someone please explain the proper syntax
    for this or point me in the right direction? Thanks.

    say the file i want to include is here:

    iwww.thisisit.c om/subweb/scripts/this.asp

    and from a file in the root folder of the sub web I want to put an include
    statement in it that points to the included file. I also need to know the
    return path.



  • Jeff North

    #2
    Re: Include statement path

    On Fri, 02 Jul 2004 20:06:32 GMT, in comp.lang.javas cript "Cracker
    Jacks" <cjacks@verizon .net> wrote:
    [color=blue]
    >| I am having trouble pointing an ASP file to another ASP for use in the
    >| include statement. I do not understand all the different paths that the
    >| server or the scripts use. Could someone please explain the proper syntax
    >| for this or point me in the right direction? Thanks.
    >|
    >| say the file i want to include is here:
    >|
    >| iwww.thisisit.c om/subweb/scripts/this.asp
    >|
    >| and from a file in the root folder of the sub web I want to put an include
    >| statement in it that points to the included file. I also need to know the
    >| return path.[/color]

    To access a file from the root folder use scripts/this.asp
    From any other folder use ../scripts/this.asp
    From a nested folder use ../../scripts/this.asp

    the ../ tells the server to go back one folder/directory to find the
    folder you are requesting.

    Comment

    • Andrew Murray

      #3
      Re: Include statement path

      do you mean the Frontpage include component or standard include file?

      <!-- #include file="yourfile. asp"-->

      "Cracker Jacks" <cjacks@verizon .net> wrote in message
      news:cfjFc.2342 $6e7.1529@nwrdd c03.gnilink.net ...[color=blue]
      > I am having trouble pointing an ASP file to another ASP for use in the
      > include statement. I do not understand all the different paths that the
      > server or the scripts use. Could someone please explain the proper syntax
      > for this or point me in the right direction? Thanks.
      >
      > say the file i want to include is here:
      >
      > iwww.thisisit.c om/subweb/scripts/this.asp
      >
      > and from a file in the root folder of the sub web I want to put an include
      > statement in it that points to the included file. I also need to know the
      > return path.
      >
      >
      >[/color]


      Comment

      • Cracker Jacks

        #4
        Re: Include statement path

        Thanks thats helps. I understand it now.

        "Jeff North" <jnorth@yourpan tsbigpond.net.a u> wrote in message
        news:8tpbe0h89p d8pbun9r28u1dgq pto0esgk4@4ax.c om...[color=blue]
        > On Fri, 02 Jul 2004 20:06:32 GMT, in comp.lang.javas cript "Cracker
        > Jacks" <cjacks@verizon .net> wrote:
        >[color=green]
        > >| I am having trouble pointing an ASP file to another ASP for use in the
        > >| include statement. I do not understand all the different paths that the
        > >| server or the scripts use. Could someone please explain the proper[/color][/color]
        syntax[color=blue][color=green]
        > >| for this or point me in the right direction? Thanks.
        > >|
        > >| say the file i want to include is here:
        > >|
        > >| iwww.thisisit.c om/subweb/scripts/this.asp
        > >|
        > >| and from a file in the root folder of the sub web I want to put an[/color][/color]
        include[color=blue][color=green]
        > >| statement in it that points to the included file. I also need to know[/color][/color]
        the[color=blue][color=green]
        > >| return path.[/color]
        >
        > To access a file from the root folder use scripts/this.asp
        > From any other folder use ../scripts/this.asp
        > From a nested folder use ../../scripts/this.asp
        >
        > the ../ tells the server to go back one folder/directory to find the
        > folder you are requesting.[/color]


        Comment

        • Avpeanuts

          #5
          Re: Include statement path

          <!-- #include file="yourfile. asp"-->
          Can yo include html code like say a menu system so i only have to edit
          one file but can place it in many pages

          Comment

          Working...