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
Post a Comment