Description, usage, and instance of the. inc file

Source: Internet
Author: User
Inc file

[What's inc file]

The. inc file, as its name implies, means include file.

In fact, the file suffix does not matter for file inclusion.

You can include an ASP file or a TXT file.
Generally, we use Inc as the suffix because it can
The role of this file.

[Why inc file]
The. inc file is similar to. H. HPP in C/C ++.
Header file. Using the inc file can make ourProgram, Add
Readability makes development and maintenance easier.

[How to inc file]
# Include
ASP file inclusion is written as follows:
In HTML, write:
<! -- # Include file = "FILENAME" -->
<! -- # Include virtual = "FILENAME" -->
The difference between file and virtual is that file uses relative paths.
Virtual is the complete virtual path of the virtual directory in your web site.
For example:
<! -- # Include file = "INC/Char. Inc" -->
It indicates the char. inc under the INC directory under the virtual directory path where the current file is located.
You may need to write the code as virtual.
<! -- # Include virtual = "/myweb/INC/Char. Inc" -->

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.