1 What is the difference between INCLUDE and REQUIRE
INCLUDE and REQUIRE functions are same to include an external file, we can say that the main difference is how they handle the failure,
if the included file doesn't exist include() generate a warning message but require generates a (fatal error) and script execution stop. at the same time include_once() and require_once() are function to include a file only once to avoid variable redefination but if the file included more than once require_once() produces a fatal error while include_once() produce a warning message.
Bookmarks