What are the drawbacks of using include_once in PHP to dynamically load content from external files?

Using include_once in PHP to dynamically load content from external files can lead to performance issues as the file is included every time the function is called. To solve this issue, you can use require_once instead, which ensures that the file is included only once during the script execution.

require_once('external_file.php');