PHP require vs include

require when the file is required by your application, e.g. an important message template or a file containing configuration variables without which the app would break. require_once when the file contains content that would produce an error on subsequent inclusion, e.g.function important() { /* important code */} is definitely needed in your application but since … [Read more…]