Jump to content

include or require.


eguru

Recommended Posts

Officially, require() is the way to go, because if the file doesnt load for some reason it doesnt keep executing the script.But personally I use include() when Im writing the code because I dont have time to write out every single script just to get one page to load, but when I put the thing on the big blue web I change it to require().

Link to comment
Share on other sites

normally some people would prefer require for security purpose, as the above page does not load ( ie .php file ) the entire page should view as error document.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...