What are the potential security risks of using include to fetch content from a remote file in PHP?

Using include to fetch content from a remote file in PHP can pose security risks such as remote code execution and exposing sensitive information. To mitigate these risks, it is recommended to use include with a local file path instead of a remote URL.

// Example of including a local file instead of a remote URL
include 'local_file.php';