Both include and require in php are used to include php file inside other file. But there is little difference between both functions.
When using include function to include file if file that is to be included does not exist then no error occur and all code runs fine with out including any file but in case of require function if the file does not exist then error occurs that file is missing and all that.

Leave a Reply

Your email address will not be published. Required fields are marked *