What potential issues can arise when including PHP scripts that use relative directory paths?

When including PHP scripts that use relative directory paths, potential issues can arise if the current working directory is not consistent across different files or environments. To solve this, it is recommended to use the `__DIR__` magic constant to reference the current directory of the script and build paths relative to that.

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