ryy705 Posted October 14, 2008 Share Posted October 14, 2008 Hello, I want to add /home/ryy705/Sites/mysite/include to my webroot so I can access home/ryy705/Sites/mysite/include/file.php with a simple include('file.php'); I am trying to do this by placing a .httaccess file with the following content in the webroot. php_value include_path ".:/home/ryy705/Sites/mysite/include" But when call include/file.php from mysite/ I get following err message: Fatal error: require_once() [function.require]: Failed opening required 'file.php' (include_path='.:/home/ryy705/Sites/mysite/include') What am I doing wrong? I thank you in advance. Link to comment https://forums.phpfreaks.com/topic/128439-solved-how-to-add-to-path/ Share on other sites More sharing options...
GKWelding Posted October 15, 2008 Share Posted October 15, 2008 Your include path should be .:/home/ryy705/Sites/mysite/include/ and when you're calling an include you should use include_once "file.php"; Link to comment https://forums.phpfreaks.com/topic/128439-solved-how-to-add-to-path/#findComment-666079 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.