Is it common for include paths to behave differently in different directory levels in PHP projects?

Include paths can behave differently in different directory levels in PHP projects due to relative paths being interpreted based on the current working directory. To solve this issue, it is recommended to use absolute paths or to ensure that include paths are consistent across all directory levels by using the `__DIR__` or `dirname(__FILE__)` magic constants to define paths.

<?php

// Using absolute path
include '/path/to/file.php';

// Using magic constants
include __DIR__ . '/file.php';
include dirname(__FILE__) . '/file.php';

?>