Including files - use absolute path?

From: Date: Sat, 14 Apr 2001 02:30:31 +0000
Subject: Including files - use absolute path?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-221@lists.php.net to get a copy of this message
Hello all, Currently, PEAR assumes that path is defined for files to be included. ( require_once('PEAR.php'); ) I don't want to use relative path nor define many path in php.ini nor pear to change include_path at run time nor set default path to PEAR at compile time. Is PEAR going to make use of PEAR_INSTALL_DIR? like require_once(PEAR_INSTALL_DIR.'PEAR.php'); It would not break anything, would it? There is no description in CODEING_STANDARD how files should be included. (except use of include_once for including files conditionally) It seems PEAR include path will be ether defined in php.ini-dist/php.ini-optimized, or at compile time. I would rather not to see default include path which is added to PHP itself at compile time. What it would be? Thanks, -- Yasuo Ohgaki

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