Re: relative paths

From: Date: Sat, 17 Nov 2001 17:29:48 +0000
Subject: Re: relative paths
References: 1  Groups: php.general php.windows 
Request: Send a blank email to php-general+get-74987@lists.php.net to get a copy of this message
You've answered your own question. If document-root is set to /usr/web/htdocs then require("/somefile") will expect to find "somefile" in document-root. -- Gaylen gfraley5@earthlink.net Home http://www.gaylenandmargie.com PHP KISGB v2.22 Guestbook http://www.gaylenandmargie.com/phpwebsite "Mitja Pagon" <mitja@hatchbit.com> wrote in message news:20011117160951.72973.qmail@pb1.pair.com... > 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 is something similar to what "/" does in HTML paths and > SSI include directives. > > Thanks, > > Mitja Pagon > >

« previous php.general (#74987) next »