11. require vs. include


Other than the syntax I really don't understand the difference or why one would choose one over the other. Can anyone elaborate?



Allready answered in
= http://discuss.codecademy.com/t/include-vs-require/10739/2


@jaydacoder take a look at this article to help you undestand

but the general difference is

require will produce an error (COMPILE ERROR) and stop the script
include will only produce a warning (WARNING) and the script will continue


Thankyou @rydan … Very helpful :smile:


The link shows it's for PHP ?


updated my original post


That was not answered at all. You coldly told the guy to google it...