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
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.22 Guestbook http://www.gaylenandmargie.com/phpwebsite

"Mitja Pagon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to