What is the difference between using require and file_get_contents in PHP when including a file?

When including a file in PHP, using `require` will include the file and stop the script execution if the file is not found or cannot be included. On the other hand, `file_get_contents` will read the file as a string and continue the script execution even if the file is not found. Therefore, if you want the included file to be necessary for the script to run, you should use `require`.

// Using require to include a file
require 'path/to/file.php';