Re: nested includes()...

From: Date: Tue, 09 Oct 2001 17:33:37 +0000
Subject: Re: nested includes()...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70522@lists.php.net to get a copy of this message
that way if the include dir changes I have to go trough each file to change it?? that doesn't solve my problem at all... At 23:00 08/10/01 -0400, Jason G. wrote:
Alas, I have your solution! I have gotten around this very problem by saying at the top of a script: define(_INCLUDE_DIR, '/home/pad/include/'); //note trailing slash Anytime i include a file: include(_INCLUDE_DIR . "lib.data.php"); It works always. -Jason Garber IonZoft.com At 10:20 PM 10/8/2001 -0300, Christian Dechery wrote:
I have a file x.php that includes a.inc, and a.inc includes b.inc... if I have a file dir/z.php including ../a.inc it doesn't work cuz it won't find b.inc... how can I get around this??? _____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- 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
-- 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 (#70522) next »