|
-
Mar 8th, 2001, 07:29 AM
#1
Thread Starter
Hyperactive Member
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???
-
Mar 8th, 2001, 07:36 AM
#2
Lively Member
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.
-
Mar 8th, 2001, 12:03 PM
#3
Thread Starter
Hyperactive Member
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.
-
Mar 8th, 2001, 12:18 PM
#4
Lively Member
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!
-
Mar 8th, 2001, 01:15 PM
#5
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|