TEXT 26
Should I use include or require? By micha on 18th July 2023 09:58:26 PM
  1. If the require / include file is not found:
  2.  
  3. require / require_once => will produce a fatal error (E_COMPILE_ERROR) and stop the script
  4. include / include_once => include will only produce a warning (E_WARNING) and the script will continue
  5.  
  6. https://stackoverflow.com/a/2418514
  7. https://stackoverflow.com/a/2418580

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.