How declare new working directory to IDE
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000533584-path-not-found-after-chdir says "IDE does not take any chdir() calls (or alike) into consideration." but is there a non automatic way to declare to the IDE what path should be considered as the current working directory ?
if (!chdir('subdir')) {
die('could not change to subdir');
}
// HERE declare new CWD to IDE
include_once('inc/somefile.php');
Please sign in to leave a comment.
Nope, it's also not possible.
The only thing you can do is to add a directory as a PHP include at Settings | PHP so that path resolution started from this directory additionally to the project root.