Welcome Guest, Not a member yet? Register   Sign In
CI Relative Paths
#4

[eluser]stevea[/eluser]
Yes. Of course. But it's not necessarily from the directory the script is in.The script that had the

include(../config.php)

was down several levels from the ci folder but this include got resolved with respect to ci ! That is, it went back up one level to the project directory and then down to the config.php in that directory. I stuck some code into the script to show the include path there:

Code:
$fp = fopen('dbg' . ".txt", 'w');
fwrite($fp,"\n include path="   . get_include_path());
fclose($fb);
  
require('../config.php');

And this got printed:
include path=.:/usr/share/php:/usr/share/pear

Clearly CI isn't using that either. CI seems to set its own paths and use those to resolve relative paths.

It's all very confusing, at this point.


Messages In This Thread
CI Relative Paths - by El Forum - 01-11-2013, 09:47 AM
CI Relative Paths - by El Forum - 01-12-2013, 01:04 AM
CI Relative Paths - by El Forum - 01-12-2013, 03:53 PM
CI Relative Paths - by El Forum - 01-12-2013, 04:16 PM
CI Relative Paths - by El Forum - 01-13-2013, 06:36 PM
CI Relative Paths - by El Forum - 01-13-2013, 07:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB