What potential security risks are associated with using include('*.php') in PHP code?

Using include('*.php') in PHP code can pose security risks such as allowing for arbitrary code execution if the file path is not properly sanitized. To mitigate this risk, it is recommended to use absolute file paths or validate user input before including a file.

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