Does open_basedir works recursive?
For example if I write in php.ini something like:
open_basedir=/client3/web3/web
Does it include all directories in /client3/web3/web (/client3/web3/web/1, /client3/web3/web/2, )?
Asked
Active
Viewed 2,473 times
1
![](../../users/profiles/71114.webp)
B14D3
- 5,110
- 13
- 58
- 82
2 Answers
2
The path supplied to the open_basedir setting is the root of a directory tree.
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself.
So yes anything below will be accessible.
![](../../users/profiles/9517.webp)
user9517
- 114,104
- 20
- 206
- 289