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?

Thanks.

Allready answered in
= Include vs Require

@jaydacoder take a look at this [article][1] 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
[1]: http://www.tutorialspoint.com/ruby/ruby_modules.htm

1 Like

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…