Greg Donald wrote:
> Did you check the open_basedir setting? That will make php act as you
> described.
We don't have open_basedir set, but our problem is slightly different. If
you were to execute only a.php in my previous example, there would be no
error since the current directory would be /
On Wed, 20 Oct 2004 09:30:20 -0400, Joey Morwick
<[EMAIL PROTECTED]> wrote:
> Hello, I'm experiencing a problem with PHP4. On the server where our code
> used to reside, the relative path used in an include started from the
> directory in which the file containing the require statement resided. O
An easy way to fix this common problem is this:
define('BASE_INCLUDE_PATH','/var/www/includes/');
include(BASE_INCLUDE_PATH.'my_include.inc');
Just make sure to include the file with the BASE_INCLUDE_PATH define using a
relative path ... ie.
--Joe
On Sat, Nov 17, 2001 at 05:15:02PM +0100,
On Sat, 17 Nov 2001, Mitja Pagon wrote:
> I want to know if there is a way to include(require) a file using a path
> relative to web server root.
I think you'll find the $DOCUMENT_ROOT environment variable handy :)
~Chris /"\
4 matches
Mail list logo