enable is an attempt to download a file but does not stop execution if it fails
include_once - does the same as include, but does an additional check to ensure that the file has not yet been included in the current script
required - this is an attempt to download a file and gives a fatal error on error
require_once is the same as require, but does an extra check to make sure it is loaded only once
If you do not need to use include_once or require_once, try to avoid them, as additional checking adds a bit of overhead.
EDIT: I have to add that the key difference is that at the compiler level a crash is required and at runtime it includes an error.
soulkphp May 17 '11 at 5:42 2011-05-17 05:42
source share