desithugg Posted August 13, 2006 Share Posted August 13, 2006 [code]for some reason when i try to include something in my base dierectory by usingcode]<? include("/file.php"); ?>[Warning: main(/file.php): failed to open stream: No such file or directory in /usr/home/osiris/domains/x3teamz.net/public_html/aai/members/forums.php on line 3[/code]a friend told me to use but im still having some problems[code]<? include_BASEDIR_ .("file.php"); ?>[/code]can an1 help im not sure what to do Link to comment https://forums.phpfreaks.com/topic/17413-include-problem/ Share on other sites More sharing options...
desithugg Posted August 13, 2006 Author Share Posted August 13, 2006 and yes im sure the file exsists Link to comment https://forums.phpfreaks.com/topic/17413-include-problem/#findComment-74115 Share on other sites More sharing options...
whare Posted August 13, 2006 Share Posted August 13, 2006 try[code]<? include ('file.php'); ?>[/code]Note that i did not use the begining / [slash][edit]and just make use the path is rightlike <? include ('folder/flie.php'); ?> Link to comment https://forums.phpfreaks.com/topic/17413-include-problem/#findComment-74116 Share on other sites More sharing options...
desithugg Posted August 13, 2006 Author Share Posted August 13, 2006 umm didnt work but when i did <? include ('.../flie.php'); ?>it worked i say this once in a code example Link to comment https://forums.phpfreaks.com/topic/17413-include-problem/#findComment-74120 Share on other sites More sharing options...
whare Posted August 13, 2006 Share Posted August 13, 2006 can you post all the code and its relative location to the file that is calling itThanx Link to comment https://forums.phpfreaks.com/topic/17413-include-problem/#findComment-74122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.