nileshkapse1991 / genusproject

Automatically exported from code.google.com/p/genusproject
0 stars 0 forks source link

Path variables not working on Windows #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. After installation browse root webpage, e,g, http://myweb/leavesystem/
2. Error encountered: 
require_once(c:\inetpub\wwwroot/leave/classes/setup/setup.php) 
[function.require-once]: failed to open stream: No such file or directory, or 
require_once(c:\inetpub\wwwroot/leave/include/functions/userdata/cleanuserdata.p
hp) [function.require-once]: failed to open stream: No such file or directory, 
etc.

Workaround 1:
Open config.php and find & replace all
    $dr."classes
with
    "./classes

I am now stuck here, which uses a different variable in common_config.php. It 
uses ['dr'] where it used $dr before, e.g.

require_once $GLOBALS['dr']."classes/setup/setup.php";

Original issue reported on code.google.com by hentie.d...@gmail.com on 29 Oct 2013 at 5:31

GoogleCodeExporter commented 8 years ago
If I replace require_once $GLOBALS['dr']."classes/setup/setup.php"; 
with
require_once $GLOBALS "./classes/setup/setup.php";
OR
require_once $GLOBALS "c:/inetpub/wwwroot/leave/classes/setup/setup.php";

then I get unexpected T_CONSTANT_ENCAPSED_STRING

Original comment by hentie.d...@gmail.com on 29 Oct 2013 at 6:00