How does PHP handle file paths when including scripts from different directories, and what considerations should be taken into account?

When including scripts from different directories in PHP, it's important to consider the file paths to ensure that the correct files are included. One way to handle this is by using the `__DIR__` magic constant to get the directory of the current file and then construct the file path relative to that directory.

// Include a script from a different directory using __DIR__
include __DIR__ . '/path/to/your/script.php';