fail
11-25-2010, 05:32 AM
I have a problem with include() path!
I run XAMPP on Xp and tried already many combination, if one works, they other does not.
Absolute path are:
c://xampp/htdocs/todo/connect.php");
c://xampp/htdocs/bom3/css/cssmenu.php");
From other server would be: http://192.168.0.103/todo/.... etc.
I tried:
include("connect.php"); // ok
include("/bom3/css/cssmenu.php"); // error
include("connect.php"); // ok
include("./bom3/css/cssmenu.php"); // error
include("connect.php"); // tries to connect to other db in bom3/
include("../bom3/css/cssmenu.php"); // ok
How can I do that?
I run XAMPP on Xp and tried already many combination, if one works, they other does not.
Absolute path are:
c://xampp/htdocs/todo/connect.php");
c://xampp/htdocs/bom3/css/cssmenu.php");
From other server would be: http://192.168.0.103/todo/.... etc.
I tried:
include("connect.php"); // ok
include("/bom3/css/cssmenu.php"); // error
include("connect.php"); // ok
include("./bom3/css/cssmenu.php"); // error
include("connect.php"); // tries to connect to other db in bom3/
include("../bom3/css/cssmenu.php"); // ok
How can I do that?