# \[php\] is DOCUMENT\_ROOT the web root?

**URL:** <https://forum.kirupa.com/t/php-is-document-root-the-web-root/146532>\
**Category:** Uncategorized\
**Created:** [May 2, 2005, 10:11am UTC](https://forum.kirupa.com/t/php-is-document-root-the-web-root/146532 "2005-05-02T10:11:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)\
**Post date:** [May 2, 2005, 10:11am UTC](https://forum.kirupa.com/t/php-is-document-root-the-web-root/146532/1 "2005-05-02T10:11:11Z")

</div>

Hi guys

Im looking at creating my own includes directory and I’ve been told that i should sit it outside the web root. Are they referring to DOCUMENT\_ROOT (server/www/docs) or www (server/www) ?

Should it be:

1. server/www/includes/  
**OR**
2. server/includes/

Your help greatly appreciated. Thanks
