0
What is the difference between include and required. In php?
i want to know the basic differences in php include and required function
1 Resposta
+ 3
include("file) : if you use it, even if php doesn't find this file..it will continue to run..rest of the things will work
require("file") : require make it necessary to find file else it will show fatal error and code will not work after that.
use require if it is really necessary to include that file, like you are saving menu files and you must have to attach it in every page.