What is the difference between include and require?
Answer
Require () and include ()
are the same with respect to handling failures. However, require () results in
a fatal error and does not allow the processing of the page. i.e. include will
allow the script to continue.
Explain the differences between require and include, include_once?
Answer
Include () will include the file specified.
Include_once () will include the file
only once even if the code of the file has been included before.
Require () and include () are the
same with respect to handling failures. However, require () results in a fatal
error and does not allow the processing of the page.
Related PHP links
Answer - Urlencode can be used to encode a string that can be
used in a url.............
Answer - Different types of errors are............
Answer - A form data can be posted or submitted without the
button in the following ways:............
Answer - IMAP is used for communicate with mail servers. It has
a number of functions.............
|