Приглашаем посетить
Достоевский (dostoevskiy-lit.ru)

Section A.10.  open_basedir

Previous
Table of Contents
Next

A.10. open_basedir

The open_basedir directive limits the files that can be opened by PHP to a specific directory. Although not a substitute for proper input filtering, this directive can reduce the likelihood of many attacks that target filesystem functions, as well as include and require.

Its value is a prefix, so be careful to use a trailing slash when you want to indicate a particular directory:

    open_basedir = /path/to/

Section A.10.  open_basedir

Be sure to disable the enable_dl directive; otherwise, open_basedir restrictions can be circumvented.



Previous
Table of Contents
Next