RE: [PHP] require, include problems

From: Date: Thu, 16 Nov 2000 20:06:10 +0000
Subject: RE: [PHP] require, include problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25770@lists.php.net to get a copy of this message
Try include("$DOCUMENT_ROOT/global_includes/css.inc"); Thank You Brian Paulson Sr. Web Developer 1-800-279-6397 X207 bpaulson@chieftain.com http://www.chieftain.com >-----Original Message----- >From: Jerry Lake [mailto:jerryl@europa.com] >Sent: Thursday, November 16, 2000 12:44 PM >To: PHP General List >Subject: [PHP] require, include problems > > >Maybe this has been discussed, but >I could not find my specific question. > >why is it that on includes and requires >I can't call them from the root like ><? >require("/global_includes/css.inc"); >?> >instead it only works like this(on internal pages) ><? >require("../global_includes/css.inc"); >?> >Hopefully I am just missing something dumb, >I'd like to be able to include a file without having >a massive trail of dots and /'s ><? >require("../../../../../global_includes/css.inc"); >?> > >confused, >Jerry Lake > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#25770) next »