Jump to content

include() windows/unix


x1nick

Recommended Posts

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 ?

 

Link to comment
https://forums.phpfreaks.com/topic/168433-include-windowsunix/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.