PHP and Includes with relative paths. . .

I'm getting errors like the following:

Warning: main(./b2config.php) [function.main]: failed to create stream: No such file or directory in /path/username/domain/blog/b2login.php on line 3

Fatal error: main() [function.main]: Failed opening required './b2config.php' (include_path='.:/usr/local/lib/php') in /path/username/domain/blog/b2login.php on line 3



This happens in quite a few commercial scripts that use a path like ./file.php

Shouldn't that path work?

How would I fix this? it's 4.3.1

Thanks,

 

 

 

 

Top