What are some best practices for including files in PHP, especially when dealing with different directory structures?

When including files in PHP, especially when dealing with different directory structures, it is best practice to use the `__DIR__` constant to ensure that the paths are always relative to the current file. This helps avoid issues with file paths when moving or restructuring your codebase.

// Include a file using the __DIR__ constant
include __DIR__ . '/path/to/file.php';