The Difference Between require() and include()
Did you know that require() and include() work differently? Both are used for including code in another file into your program, but there is a crucial difference in how they operate when that file cannot be read which any PHP programmer needs to know about. There's also a slight difference with require() between new and older versions of PHP which this tutorial discusses too.