What is difference between require() and include()?

  • require() and include() both are used for including files in PHP.
  • When you include a file using include() and that file is not exists then it will give warning (E_WARNING) and the rest script will continue.
  • When you include a file using require() and that file is not exists then it will give fatal error (E_COMPILE_ERROR) and the rest script will not run that means stop the execution of script.

Syntax:

The intuitive plausibility of the coherence and http://writemyessay4me.org consensus criteria rests on.

Ankush chhabra

My name is Ankush Chhabra and I’m a 28 years old web developer and blogger.I have 5 years of experience in this field.