> An unsuccessful include will give you an error.
>
> An unsuccessful require will kill the program.
Also: require() statements cannot be embedded inside conditionals. For
example:
<?PHP
if ($something) {
include("somefile.php") // this is okay.
}
if ($something) {
require("somefile.php") // this is wrong.
}
?>
The reason: require() is taken care of on an initial pass of the parser,
which makes it faster than include(). Unfortunately, that means that the
parser doesn't check to see if it's embedded in a conditional statement.
Finally, unless you're using these functions to pull in actual HTML, as
opposed to code, think hard about using include_once() or require_once(),
which spares you those obnoxious "Cannot redefine function blah() in blah
blah blah" errors.
-----
Sam Leibowitz ([EMAIL PROTECTED])
Project Manager
Business Technology Center
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]