Re: [PHP] relative paths with "require"

2004-10-20 Thread Joey Morwick
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 /

Re: [PHP] relative paths with "require"

2004-10-20 Thread Greg Donald
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

[PHP] relative paths with "require"

2004-10-20 Thread Joey Morwick
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. On our new server, the relative paths seem to start from where the first php script

[PHP] Relative Paths and file_exists() - Solaris

2002-09-26 Thread James Nikolich
Hello; I'm using PHP 4.2.3 on a Solaris 2.8 (Sparc) system. I've been having some difficulties getting PHP-Nuke 6.0 to work for me. I eventually narrowed the problem down to incorrect results from calls to file_exists(). It seems that file_exists() is having trouble finding an existing file w

Re: [PHP] relative paths

2001-11-18 Thread Joe Stump
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,

Re: [PHP] relative paths

2001-11-17 Thread Christopher William Wesley
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 /"\

[PHP] relative paths

2001-11-17 Thread Mitja Pagon
Hi! I want to know if there is a way to include(require) a file using a path relative to web server root. I'm aware of the fact that you can specify include path, but I believe that this is not the best solution, since applications written that way aren't easily portable. What I'm looking for i