In PHP what is the use case for include instead of require when including PHP scripts?
In PHP one can either use
require to include files, the difference is that if the file doesn't exist it will emit a fatal error and halt with a
require and only emit a warning with
Normally would rather my code fail if code is missing and require that it be fixed rather than just throw a warning which might get ignored. The one solid use case I have seen for
include was a bitcoin mining hack where a
require might cause the error to show up in the logs sooner.
What is the use case for PHP's