Php file inclusion.
PHP provides two function for file inclusion.
- include.
- require.
include().
Include take all text from file and it copies into the file that uses the include function.if there is problem of loading a file then include generate a warning but script run.
require().
Include take all text from file and it copies into the file that uses the include function.if there is problem of loading a file then reqiure function generates falt error and halt the execution of script.