What Is The Difference Between Include And Require Functions In Php Diference
- Forums
- PHP
- What Is The Difference Between Include And Require Functions In Php Diference
today im going to try to explain what is the main difference between include() and require() functions in PHP. this is helpful information for beginers trying to understand who PHP works [1022], Last Updated: Sat May 18, 2024
lini
Sun May 06, 2007
0 Comments
801 Visits
i dont want to confuse more, but im going to keep it short and simple
include(): if you use this function, the file you include, if there is an error on it, the script will not stop, it will still continue to parse your code, but it will generate a Warning message.
require(): with this function, if there is an error on the require() file, the script will stop and the rest of the code will not be parse.
simple right?