PHP·98 questions

What is the difference between require and include?

Answer
include — Warning on error, script continues.
require — Fatal Error, script stops.
include_once/require_once — include only once.
require for critical files.
include for optional files.
Was this answer helpful?

More questions in this topic

Related questions from other topics