What are the limitations of including files using HTTP in PHP?

When including files using HTTP in PHP, it can pose security risks as it allows remote file inclusion, which can lead to code execution vulnerabilities. To mitigate this risk, it is recommended to include files using local file paths instead of HTTP URLs.

// Include file using local file path
include 'path/to/file.php';