What are the potential pitfalls of using relative paths for including PHP files in a nested directory structure?

When using relative paths for including PHP files in a nested directory structure, the main potential pitfall is that the path may not be correctly resolved depending on the current working directory of the script. To solve this issue, it is recommended to use the `__DIR__` constant to get the absolute path of the current file and then construct the path to the included file relative to that.

include __DIR__ . '/path/to/your/file.php';