atholon Posted September 25, 2008 Share Posted September 25, 2008 I am trying to set the idefault include path to www/includes but I am not sure how to set it accurately. Can someone help? Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/ Share on other sites More sharing options...
rarebit Posted September 25, 2008 Share Posted September 25, 2008 I can't see it, but it seems it was a spelling mistake, see http://uk3.php.net/manual/en/function.set-include-path.php Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650000 Share on other sites More sharing options...
atholon Posted September 25, 2008 Author Share Posted September 25, 2008 Right, I need to know what value to pass to set it for the www directory Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650002 Share on other sites More sharing options...
rarebit Posted September 25, 2008 Share Posted September 25, 2008 I believe if it starts with a root object it'll be absolute, otherwise it'll be relative, e.g. /var/www/html/inc/ or inc/ Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650005 Share on other sites More sharing options...
atholon Posted September 25, 2008 Author Share Posted September 25, 2008 Looks like .;E:/EasyPHP\php\pear\ is the default. set_include_path(get_include_path()."../../www/includes"); Kind of seems like the brute force kind of way. Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650018 Share on other sites More sharing options...
rarebit Posted September 25, 2008 Share Posted September 25, 2008 I take it your on a machine running windows... p.s look at the slashes, your mixing them... Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650022 Share on other sites More sharing options...
atholon Posted September 25, 2008 Author Share Posted September 25, 2008 Yeah I noticed that and fixed it, seems to work either way. Doesn`t seem to be what I am wanting. I'll have to think of an alternative. Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650027 Share on other sites More sharing options...
atholon Posted September 25, 2008 Author Share Posted September 25, 2008 Thanks for the help then. Link to comment https://forums.phpfreaks.com/topic/125710-set_include_path/#findComment-650041 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.