473,509 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Feb 28 '06 #1
2 1329
wedsall at geemail wrote:
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

If I am reading the warning correctly, you are using relative pathing to
specify the include file. Try removing the ./ prefix and letting PHP use
the include_path to find the file you want.

-david-

Mar 1 '06 #2
Relative paths yes.. BUT..
They're out of the box paths from phpBB2 and phpmyadmin. They should
work.
Something's wrong with my install.

Mar 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4645
by: JStrummer | last post by:
I have a question regarding paths and the include() statement in PHP. I develop in a Windows environment and will be publishing to a Linux server. I would like to do the following: 1. Setup my...
43
5042
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
2
1879
by: Marcus | last post by:
Hello, I am having problems with an include statement. I'm setting a session variable flag and then including a file, and in that include file I have a check at the top to make sure that the...
5
2495
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
2
1479
by: Nick Craig-Wood | last post by:
We are currently investigating whether to move the data files from our application into python for ease of maintenance. Each data item turns into a class definition with some class data. The...
2
6716
by: Tomasz Jastrzebski | last post by:
Hi All, Is there any way I can specify additional dll search path, preferably in web.config, which would be used by asp.net 2.0 when binding assemblies? I have many dlls shared among...
19
4386
by: SteveT | last post by:
Is it possible to have an include file that resides outside of the web site parent folder? For instance, lets say you have several websites under Inetpub/global/websites/ but the include file is...
4
3369
by: Jon Slaughter | last post by:
I'm using eval to excute some mixed php and html code but I cannot debug it. I am essentially using filegetcontents to load up a php/html file and then inserting it into another php/html file and...
8
11461
by: moondaddy | last post by:
I'm posting code for a user control ( FunctionConnectorSelector) below which has 3 content controls in it. each content control uses a style from a resource dictionary merged into the app.xaml...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.