Was bedeutet es, dass require() eine Datei "einbindet und auswertet" im Vergleich zu include()?
When using require() in PHP, the file being included is essential for the script to run, and if the file cannot be included, a fatal error will occur. This means that the script will stop executing. On the other hand, include() will only produce a warning if the file cannot be included, allowing the script to continue running. Therefore, if you want to ensure that a file is included and evaluated successfully, use require().
<?php
require('file.php');
// code that depends on file.php
?>