How can I get Apache's DirectoryIndex in PHP? -


is there way array (or similar) of directoryindex in php being run under apache? example, able check if 1 of directoryindex files exist in specific directory. related how can directoryindex filename given uri using php? doesn't quite ask same thing please don't point despite it's similarity.

edit: i'd prefer not have go file parsing.

unfortunately not, apache not make available through environment variables.

if have control on configuration use setenv directive alongside directoryindex. read in php using apache_getenv().

otherwise think you'll have parse apache config files yourself.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -