Include path issues



Hello! I have an issue with my include_path.

So I did a fresh install of php, and my web directory is actully in one
of the home directories. Let's call it /home/userx/www/

Something is wrong with the include_path, but I don't understand it.
You can directly include a file in the directory you're in, but
includes don't work two files deep. For instance when phpBB2 includes
include/functions.php, the references to $base_url inside functions.php
are taken from its own location, instead of the file that included it.

Warning: include(./language/lang_english/lang_main.php)
[function.include]: failed to open stream: No such file or directory in
/home/userx/lib/www/htdocs/phpBB2/includes/functions.php on line 719

Please help! My include_path is set to .:/usr/local/lib/php

.



Relevant Pages

  • Re: Include path issues
    ... wedsall at geemail wrote: ... So I did a fresh install of php, and my web directory is actully in one ... Try removing the ./ prefix and letting PHP use the include_path to find the file you want. ...
    (comp.lang.php)
  • Re: MySQL not working on PHP 5.2.4 zip based install
    ... I guess it will be helpful when I do a fresh install of WAMP some ... Right one is to preload library before loading PHP extension. ... Notice that I use libMySQL shipped with MySQL server rather than one bundled ... Other solution is to use Connector/PHP from MySQL website. ...
    (comp.lang.php)
  • Can anyone help out a PHP newbie?
    ... something that I'm sure is a breeze for more experienced PHP coders. ... report routine that pulls reports from the files freaks out if it finds ... They numerical order would have to match the ... All the files exist in a single Web directory with no other files, ...
    (comp.lang.php)
  • Can anyone help out a PHP newbie?
    ... something that I'm sure is a breeze for more experienced PHP coders. ... report routine that pulls reports from the files freaks out if it finds ... They numerical order would have to match the ... All the files exist in a single Web directory with no other files, ...
    (comp.lang.php)
  • Can anyone help out a PHP newbie?
    ... something that I'm sure is a breeze for more experienced PHP coders. ... report routine that pulls reports from the files freaks out if it finds ... They numerical order would have to match the ... All the files exist in a single Web directory with no other files, ...
    (comp.lang.php)