I know that there are php includes that allow you to insert an item into a webpage so that the code is hidden in a different page. (ie menu.php, header.php, etc).
Do I need to give the web page the include is on an .asp extension vs an .htm extension. And does the page with the menu on it that is the actual include also need to have an .asp extension or can it be an .htm?
I see in your example that the file is called file.inc.
I recently created a web page that incorporates a PHP include, so that instead of putting the menu on each and every page and having to update the links on each and every page, I was able to link the menu via a PHP include so I only have to change the new link once and it would automatically change on all the site pages.
Unfortunately, I found out the client doesn't have PHP on their server. But they do have ASP on their server and can access ASP pages.
I'm wondering if and how you could do this using ASP instead of PHP???
.inc is used to indicate that the file is included, or even that it is a incomplete code fragment, however, the file extension has no bearing on whether or not a file may be included.
That said, you may include any file with any extension, or even no extension.
Bookmarks