Re: DB_DataObject, to work what do I need

From: Date: Sun, 08 Sep 2002 21:35:20 +0000
Subject: Re: DB_DataObject, to work what do I need
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8952@lists.php.net to get a copy of this message
On 8 Sep 2002 at 10:49, Arnaud Limbourg wrote: > Can you put files in /php/includes ? or in /usr/share/php ? No, those are shared by all users on the system. I cannot impose my preference on all. > Ok so you have an ssh access. If you can use ini_set or the thingie i > explained above that should do it ;) I have ssh access to MY files on the system. http://www.php.net/manual/en/function.ini-set.php As I understand ini_set, I put it in php files and it depends on settings in php.ini which I don't control. But I'm certainly not going to mess with ini_set for other people's files. Here is what I do on one of my servers to tell Perl where to find my local modules: setenv PERL5LIB /usr/home/rede1/usr/local/lib/site_perl so when I run Perl at the command line it finds my modules. Works like a charm. I put the above path in my httpd.conf on that server so Apache knows where they are. I have no problems. But I don't understand how to do this with Pear. I know I can use an include path for simiple php classes I created and put it in the document root in .htaccess as such: php_value include_path ".:/home/pschon/php_modules" php_flag safe_mode on php_flag register_globals off And that works for Pear. But my system is using Pear from somewhere else, somewhere controlled by the ROOT server: > bash-2.05$ whereis pear > pear: /usr/bin/pear /usr/local/bin/pear > bash-2.05$ ls -la /usr/local/lib/php/PEAR.php > -rw-r--r-- 1 root root 24378 Jul 22 11:55 > /usr/local/lib/php/PEAR.php I cannot install a local version of Pear. What about determining the version of pear. I can't just do a pear v > bash-2.05$ /usr/bin/pear -v > <br /> > <b>Fatal error</b>: Failed opening required 'PEAR.php' > (include_path='') in <b>/usr/bin/pear</b> on line > <b>27</b><br /> > bash-2.05$ I find it terribly odd that it outputs html to the command line. How can I set that include_path ? I tried putting it in my .bash_profile but it did not help > bash-2.05$ cat ~/.bash_profile > # .bash_profile > > # Get the aliases and functions > if [ -f ~/.bashrc ]; then > . ~/.bashrc > fi > > # User specific environment and startup programs > > PATH=$PATH:$HOME/bin > include_path=.:/home/pschon/php_modules/ > > alias pear=/home/pschon/public_html/php_modules/bin/pear > > export PATH include_path pear still shows the include_path as empty. Oh well. > bash-2.05$ perl -v > > This is perl, v5.6.1 built for i686-linux Yup, pretty straightfoward. No html. I'd really like to be able to get this to work but I reckon that people who work on PEAR are like the mod_perl folks all of whom work on private boxes where they work as system administrator or closely with them. I can use PEAR (at least whatever version my host has). I'm using this version of PHP > PHP Version 4.2.2 but I've got no clue what version of PEAR I'm using. I guess I could open PEAR.php to see that but is that related to the binary pear? Confused but not ready to give up. Peter

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