What are the potential pitfalls of using relative paths in PHP include statements?
Using relative paths in PHP include statements can lead to errors if the file structure changes or if the script is included from a different directory. To avoid these pitfalls, it's recommended to use absolute paths or the `__DIR__` constant to ensure the correct file is included regardless of the script's location.
include __DIR__ . '/path/to/file.php';