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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -