Skip to content

Instantly share code, notes, and snippets.

@Emmathem
Created December 1, 2017 17:06
Show Gist options
  • Save Emmathem/7b96baa769bb670e15d63ea811286cd6 to your computer and use it in GitHub Desktop.
Save Emmathem/7b96baa769bb670e15d63ea811286cd6 to your computer and use it in GitHub Desktop.
PHP-Acceleration-Day 1
INCLUDE AND INCLUDE_ONCE; REQUIRE AND REQUIRE_ONCE
Both are used to include a file on a page but the execution procedure or process differs, INCLUDE and INCLUDE_ONCE does not stop the
execution of a particular but REQUIRE and REQUIRE_ONCE does, and it mostly used to initialize a DB connection. When REQUIRE or REQUIRE_ONCE
can not find either the path, or the name of the file to be required, it throws a FATAL ERROR causing the program to stop executing
@Emmathem
Copy link
Author

Emmathem commented Dec 1, 2017

question 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment