Ask about general coding issues or problems here.
1 post • Page 1 of 1
both allow you to internalize code from other files into the calling one, but require() is a strict include in that execution will stop if the other file is not found or readable. using include() may help avoid a fatal error at the time of include, but as soon as you go to use a function or object from a file which is not actually included, you'll end up running into another fatal error that may be tougher to spot the cause of. Personally I use require, and an __autoload() function to load class files as necessary instead of requiring everything up front.
Who is online
Users browsing this forum: No registered users and 4 guests