x1nick Posted August 1, 2009 Share Posted August 1, 2009 I usually would just set my includes as '/folder/file.php' But would like to be able to set this fully eg 'c:/xampp...../file.php' I know unix uses forward slashes and that windows php should be able to cope with this. Warning: include(C:/xampp/htdocs/sub/bubble/index.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\sub\bubble\cms\lib\lib_ajax.php on line 42 Warning: include() [function.include]: Failed opening 'C:/xampp/htdocs/sub/bubble/index.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\sub\bubble\cms\lib\lib_ajax.php on line 42 But it does exist, does something need enabling in php.ini ? Quote Link to comment https://forums.phpfreaks.com/topic/168433-include-windowsunix/ Share on other sites More sharing options...
ldougherty Posted August 1, 2009 Share Posted August 1, 2009 Since you are trying to specify the full path you would need to include the full path in your php.ini under your include_path directive. C:\xampp\htdocs\sub\bubble\cms\lib\ Quote Link to comment https://forums.phpfreaks.com/topic/168433-include-windowsunix/#findComment-888485 Share on other sites More sharing options...
x1nick Posted August 1, 2009 Author Share Posted August 1, 2009 Was hoping that wouldn't be the case. O well, back to editing a silly amount of code Quote Link to comment https://forums.phpfreaks.com/topic/168433-include-windowsunix/#findComment-888494 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.