What the difference is between include and require in php with example
Include:
By using this concept we can embed the external page current
application. We have difference function
to embed the external page or file.
Defection: it includes the external page number of times. If
the external page is not available it returns a warring massage and executed the rest of the statements once we
include the external file we can call the variable, function, class and
executable statements of external file from current application.
Include_once :
It is same as include but we can embed the external file
only one time.
Require
It is same as include used to embed the external file multiple
times. But returns error message if the external file is not available and
stops the execution of rest of the statement.
Require_once
It is same as require. But only one time we can embed the
external file.