Re: absolute versus relativ

From: Date: Tue, 09 Jul 2002 10:32:51 +0000
Subject: Re: absolute versus relativ
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7586@lists.php.net to get a copy of this message
Lukas Smith wrote:
Alternatively one could just do something like this dirname(__FILE__)."/filename"
+1 , i really like this one, since it solves a lot of problems. No include path is needed anymore, no edititing of php.ini, htaccess, or using ini_set neither. I am developing currently a couple of applications, which are PEAR-based and the problem i am facing more often is to get/keep/maintain the PEAR-module version needed for a specific application. Not every application is working with the newest version of each PEAR-module. So i have to include the PEAR (and all the PHP-classes that are in the include path) in the application to recreate the application as it was developed. Finally i created a structure which works very well and i only need to set the right include path for each application, by using 'ini_set'. But still i think the 'dirname(__FILE__)."/filename"' could make it easier for a lot of people to use PEAR-packages without struggling with the include path, especially for non-experts! -- Wolfram ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#7586) next »