Common functions, excel Common functions

Source: Internet
Author: User

Common functions, excel Common functions

Require () usage:

(1) If X is a built-in module, such as the format of require ('HTTP.

A. Return to this module

B. Do not continue execution
(2) If X starts with "./", "/", or.

A. Determine the absolute path of X based on the parent module of X.

B. Use X as a file and search for the following files in sequence. If one of them exists, the file will be returned and will not be executed.

C. Use X as the Directory and search for the following files in sequence. If one of them exists, the file will be returned and will not be executed.

(3) If X does not contain a path.

A. determine the possible installation directory of X based on the parent module of X.
B. Load X as a file name or directory name in each directory in sequence.

(4) throw "not found ".

_ DIR _ usage:

The magic constant that points to the directory where the PHP script is currently executed.

For example, __dir _ equals to '/www/website '.

Related Article

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.