Results 1 to 5 of 5

Thread: include files.......

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    Hi,

    what i want to ask is.....do include files have to have a .inc extension??? coz my code works even is i use .asp files as include files. Or is there any advantage using the .inc extension???

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Connecticut
    Posts
    98

    nope

    Nope, you don't have to use the .inc extension. In fact there are benefits of NOT using it. For instance, if you keep your database connection code in an include file for convenience, you would want to include it using the .asp file to hide your code.

    If someone wanted to view your connection info, they wouldn't be able to if it were an .asp file.

    The code would be parsed out by the server, like any other .asp page.

    The .inc file is as good as a text file.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    thanx piz, for clearing that up.......

    will probably switch to a .asp extension......since the code in the include file is ASP code... i'll be better off that way, right?
    Last edited by rammy; Mar 8th, 2001 at 12:12 PM.

  4. #4
    Lively Member
    Join Date
    Jul 2000
    Location
    Connecticut
    Posts
    98

    yep

    I always use the .asp extension. Someone may have a reason for using the .inc file, but I haven't come across one.

    Besides, I don't like people looking at my code!

  5. #5
    Lively Member
    Join Date
    Jul 2000
    Location
    Connecticut
    Posts
    98

    yep

    I always use the .asp extension. Someone may have a reason for using the .inc file, but I haven't come across one.

    Besides, I don't like people looking at my code!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width