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???
Printable View
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???
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.
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?
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!
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!