Hi again.
I started this thread, and hope will finish it 🙂 Here is description of a parameter that must be set in php.ini
open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree.
When a script tries to open a file with, for example, fopen or gzopen, the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.
The special value . indicates that the directory in which the script is stored will be used as base-directory.
Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.
There is also examples of using this parameter in errata manual at php.net
Thank you all, you helped me very much.
It was really good to look at this problem from different sides.