Re: PEAR on my server

From: Date: Fri, 11 Jan 2008 14:07:31 +0000
Subject: Re: PEAR on my server
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28428@lists.php.net to get a copy of this message
To find where things are installed, do a *pear config-show* at the command line, and look for the *php_dir* setting. That is the path you need in your *include_path* setting. As for actually setting it, most people add it to the *include_path* setting in their *php.ini* file. If you don't have permissions to edit that file, you can call the *set_include_path()* function at the top of your PHP file to set it *before* doing any include/require commands that point to the PEAR files. There's a section on this page ( http://pear.php.net/manual/en/installation.shared.php) that shows how to use *set_include_path()* in conjunction with *get_include_path()* to do what you need. Hope that helps... CRB On Jan 11, 2008 1:44 AM, Dan Orrico <greendescend@yahoo.com> wrote: > Ok, I installed a package I wanted. Now how do I include it? I know the > function include(' '); but where is the package located and what file do I > use to implement the proper stuff??? > > *Chuck Burgess <demon.gene@gmail.com>* wrote: > > That would be the command shell on your website server, which is probably > a bash shell if it's a Linux box. If it's a Windows server, it will be a > DOS shell. In any case, I *think* it's safe to say it will be the same > command-line shell you ran the pear manager installation from. > CRB > > On Jan 10, 2008 4:40 PM, Dan Orrico <greendescend@yahoo.com> wrote: > > > Yes, I am aware of that website but when it says "run it on your shell," > > what is "my shell" in this context? > > > > Thanks, > > Dan > > > > > > *Chuck Burgess < demon.gene@gmail.com>* wrote: > > > > On Jan 9, 2008 6:57 PM, Dan Orrico < greendescend@yahoo.com> wrote: > > > > > Hello. I installed the PEAR manager on my website server and I now > > > have a folder in my directory called PEAR. I was trying to find on the PEAR > > > website how to install packages with this configuration but I can't seem to > > > find anything. How do I install packages on my remote server? > > > > > > > > > Dan, > > > > I think this sounds like what you're looking for -- > > http://pear.php.net/manual/en/installation.cli.php > > > > > > It covers using the pear installer commands to install specific PEAR > > packages. > > -- > > CRB > > > > -- > CRB > >

« previous php.pear.general (#28428) next »