tarlejh Posted October 8, 2007 Share Posted October 8, 2007 Does anyone know of a good tutorial or lesson other than the PHP function ref. where I can finally learn how to get the paths right when I use require()/include()?? I'm no beginner, yet I spend quite a lot of time struggling with this simple directive. Link to comment https://forums.phpfreaks.com/topic/72379-path-help-with-require-and-include-directives/ Share on other sites More sharing options...
cooldude832 Posted October 9, 2007 Share Posted October 9, 2007 Best method is to use the $_SERVER['DOCUMENTS_ROOTS'] and then a sub folder after that that is your scripts folder. Link to comment https://forums.phpfreaks.com/topic/72379-path-help-with-require-and-include-directives/#findComment-365023 Share on other sites More sharing options...
tarlejh Posted October 9, 2007 Author Share Posted October 9, 2007 Best method is to use the $_SERVER['DOCUMENTS_ROOTS'] and then a sub folder after that that is your scripts folder. Thx, just noticed the tutorial on require() on this very site. My bad. Link to comment https://forums.phpfreaks.com/topic/72379-path-help-with-require-and-include-directives/#findComment-365026 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.