What are some potential pitfalls of using include() in PHP for beginners?

One potential pitfall of using include() in PHP for beginners is the risk of including files from untrusted sources, which could lead to security vulnerabilities such as code injection. To mitigate this risk, it is important to validate and sanitize user input before including files. Additionally, using absolute paths instead of relative paths can help prevent unintended file inclusions.

// Example of including a file with absolute path
include('/path/to/your/file.php');