What are the best practices for managing file includes with different directory structures in PHP?

When managing file includes with different directory structures in PHP, it is best to use the `__DIR__` constant to ensure that file paths are always relative to the current file. This helps maintain consistency and prevents issues when moving files around or working in different environments.

// Example of managing file includes with different directory structures in PHP

// Define the base path to the included files
define('BASE_PATH', __DIR__);

// Include a file using the base path
include(BASE_PATH . '/includes/header.php');