.htaccess - how to put php files out of webroot -


how can know web root folder ? , how put folders out of web root folder? , how test not accessible outside ?

the structure of hosting this:

www.website.com :  public_html/ includes / logs/ 

...

is enough protect includes folder , logs folder htaccess? , out of web root in case?

i know $server[document root] provide root of website , confused how put files out of , welcome , all

all files in public web root folder.

the 'inside' of root publichtml/. place in there publicly accessible. name of root can vary host host, public_html or httpdocs.

the 'outside' 1 directory up. remember hosts not give enough permissions.

you cannot test documents outside root, because not accessible. php can access files. that's why not place img/js/css files outside root cause need direct access. can serve them through php.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -