DOCUMENT_ROOT error

software development

#1

Hi there,

i’m trying to include some config files with :

include($_SERVER['DOCUMENT_ROOT']."/mydir/myconfigfile.php");

But i get “No such file or directory” error.
Does someone have a solution to save my life ?

Thanks