eguru Posted September 10, 2006 Share Posted September 10, 2006 What would you use to include a file, is it <?php include or require ('')?>I know the advantage of both the method, just asking your opinions on this. Link to comment Share on other sites More sharing options...
Akula_dude Posted September 10, 2006 Share Posted September 10, 2006 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 More sharing options...
eguru Posted September 10, 2006 Author Share Posted September 10, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now