Bug #7177 [NEW]: Traditional local copy PEAR installation does not work

From: Date: Wed, 22 Mar 2006 02:30:35 +0000
Subject: Bug #7177 [NEW]: Traditional local copy PEAR installation does not work
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7703@lists.php.net to get a copy of this message
From: Quan dot Vu at epfl dot ch Operating system: Linux Package version: PHP version: 4.4.2 Package: Documentation Bug Type: Bug Bug description: Traditional local copy PEAR installation does not work Description: ------------ Instructions were followed for installing a local copy of PEAR on a shared host following http://pear.php.net/manual/en/installation.shared.php. Pear version installed 1.4.8 stable. Path /home/[user]/pear/bin added to .bashrc and tested OK with which pear I could not get a database connection. What could be wrong? Test script: --------------- <?php ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR . ini_get('include_path')); require_once("DB.php"); ?> Expected result: ---------------- Connection to database ok. Actual result: -------------- Warning: main(DB.php): failed to open stream: No such file or directory... on line 3 Fatal error: main(): Failed opening required 'DB.php' (include_path='~/pear/lib/php:.:/usr/lib/php:/usr/local/lib/php') in... on line 3 -- Edit bug report at http://pear.php.net/bugs/bug.php?id=7177&edit=1 --

« previous php.pear.doc (#7703) next »