What potential pitfalls can arise when using include() to include another PHP script?

One potential pitfall when using include() to include another PHP script is the risk of including the same file multiple times, which can lead to redeclaration errors or unexpected behavior. To prevent this issue, you can use the include_once() function instead, which ensures that the file is only included once.

include_once('path/to/your/script.php');