Awhile ago I read somewhere on how to disabled directory browsing in php.ini but I can't remember where I read it. I tried googling it but didn't find anything on how to do it in php.ini. Does anyone know the command to disable it? Thanks.
I also just did a search but could not find a way in php.ini However ... If you are using Apache then in your .htaccess file add on a new line Options All -Indexes Code (markup):
You can do this in your httpd.conf file for apache, but not the php.ini file as far as I am aware. And it's using the -Indexes in your <directory> section like is mentioned above <Directory /> Options All -Indexes </Directory>