myphpfreaks Posted October 20, 2007 Share Posted October 20, 2007 I read that I needed $DOCUMENT_ROOT/ to save or read files on my server. It works without it. Why and what is the purpose of having $Document_root/ in the first place? Link to comment https://forums.phpfreaks.com/topic/74040-document_root-is-not-needed/ Share on other sites More sharing options...
redarrow Posted October 20, 2007 Share Posted October 20, 2007 Now that being silly.......... who told you that? Link to comment https://forums.phpfreaks.com/topic/74040-document_root-is-not-needed/#findComment-373819 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 You definitely don't have to docroot. However it can help you to make the path's easier. I recommend using it if you are not good with paths in php. ONce you get good then you can do it manually. What docroot does is look at the VERY root, so it helps you to get the path's right. In case if you were 5/6 folders down. the only purpose of it is to help find the path with less problems, but it's far from required. I personally find it easier. Link to comment https://forums.phpfreaks.com/topic/74040-document_root-is-not-needed/#findComment-373951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.