php - How to restrict opendir from going past root folder? -


i trying simulate shared hosting on local server blocking off root directory.

i've tried:

<directory "c:/xampp/htdocs/root"> options -indexes </directory> 

in httpd.conf (restarted apache)

and

options -indexes 

in .htaccess of htdocs.

what need restrict opendir accessing beyond folder?

you need use open_basedir in config file

open_basedir - how set specific directory


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

objective c - Ownership modifiers with manual reference counting -

python 3.x - Mapping specific letters onto a list of words -