Are there any security concerns when using include to execute scripts multiple times in PHP?

When using include to execute scripts multiple times in PHP, there is a potential security concern if the included script contains sensitive information or performs actions that should not be repeated. To solve this issue, you can use the include_once function instead of include, which ensures that the script is only included once, even if the include statement is used multiple times.

include_once 'script.php';