Re: read apache settings



On 28 nov, 12:23, "massimo.sala" <massimo.sala...@xxxxxxxxx> wrote:
is it possible from a php script to read the apache settings ?
for example
DirectoryIndex
ServerAdmin

There is no direct function in PHP to read apache configuration. You
could try to open the conf-file and look for the options manually.

You could also make other checks. For instance, if you want to know if
a certain directory has an open index, you could perform an HTTP
request to that directory. If that request returns 403, the index is
not allowed...


Kind regards,
Mathew
.