What are the potential security risks of using the .inc file extension for PHP includes?
Using the .inc file extension for PHP includes can pose security risks as these files may be accessible by unauthorized users if not properly secured. To mitigate this risk, it is recommended to store include files outside of the web root directory and use .php extension for PHP includes.
// Instead of using .inc file extension, use .php extension for PHP includes
include_once('/path/to/secure/include.php');