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