using "/" to access DocumentRoot

Problems with the Linux version of XAMPP, questions, comments, and anything related.

using "/" to access DocumentRoot

Postby plokkum » 27. February 2009 08:32

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,
Posts: 1
Joined: 27. February 2009 08:28

Re: using "/" to access DocumentRoot

Postby Wiedmann » 27. February 2009 12:50

include() is working with filesystem paths, and not with urls.
AF Moderator
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 18 guests