Page 1 of 1

using "/" to access DocumentRoot

PostPosted: 27. February 2009 08:32
by plokkum
Hi all,

I'm very new to running a webserver on Linux. I set up my server yesterday and everything is running great. However, when I'm trying to access a file in a subdirectory of my documentroot using include ("/config/config.php"); I will always get an error message that it can't find the "config" directory in my documentroot. Do I need to set something up differently?

Thanks in advance,
Plokkum

Re: using "/" to access DocumentRoot

PostPosted: 27. February 2009 12:50
by Wiedmann
include() is working with filesystem paths, and not with urls.