What potential issues could arise when including files from subdirectories in PHP scripts?
When including files from subdirectories in PHP scripts, potential issues could arise with file paths becoming incorrect due to relative paths being used. To solve this issue, it is recommended to use absolute paths or the magic constant `__DIR__` to ensure that the correct path is always used.
// Include file using absolute path
include_once(__DIR__ . '/subdirectory/file.php');