What are the potential pitfalls of using a .inc file extension in PHP?

Using a .inc file extension in PHP can potentially expose sensitive information to users if the file is accessed directly through a web browser. To prevent this, it is recommended to place the .inc files outside of the web root directory or use a different file extension that is not directly accessible through the web server.

// Example of including a .inc file with a different file extension
include 'config.inc.php';