The difference between include and require include_once and require_once of

And require the difference 1.include

1 different treatment that failed to load

 include and require in addition to the different ways of processing import documents, the biggest difference is:

include a warning is generated and the script continues to be down at the time of the introduction of the absence of documents;

It will cause the script to stop running when an error occurs require the introduction of documents;

 

The difference between include and include_once

 When referring to the same file multiple times can be performed include include_once performed only once;

 

The difference between require and require_once

 When referring to the same file can be executed multiple times require require_once performed only once;

 

Guess you like

Origin www.cnblogs.com/Aleen/p/11240657.html