Re: beginner with go-pear on shared host
| From: | Justin Patrin | Date: | Thu, 08 Jul 2004 21:36:55 +0000 |
| Subject: | Re: beginner with go-pear on shared host | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13565@lists.php.net to get a copy of this message | ||
On Thu, 08 Jul 2004 23:09:08 +0200, Steven <steven@sifre.demon.nl> wrote:
> Justin Patrin wrote:
>
> >>>echo system('which php');
> >>
> >>Thanks for clearing that up, both methods now work on my local machine,
> >>the latter doesn't seem to need the 'echo' to work though. However on
> >>the shared host, the one I'm trying to install pear to, it produces no
> >>output at all:-(
> >
> > Likely, your host is blocking shell commands then, as they should be.
> > You could use go-pear on your own machine, then just upload the entire
> > PEAR directory that gets created. This should work fine, it's just an
> > extra step.
>
> Thanks, I didn't realize that was possible. The paths I see in the
> configuration section of the PEAR installer frontend gave me the
> impression the installed files are somehow configured to work with the
> php and pear files in the system. Which may be different on different
> systems. But this impression is wrong I understand. These paths are only
> used for the installer frontend then?
>
> This brings me brings me to another question. To work with pear libs
> that I install in my web directory does the system *have* to have the
> PEAR Foundation Classes installed? I know these are bundled with PHP but
> this ISP is having a rather non-standard configuration (register_globals
> on and safe mode off for instance). I don't see "'--with-pear" in the
> configuration command. Is there a way to find out if the PFC are
> installed short of calling the ISP? Thanks,
>
You can try require_once('PEAR.php');
Although, if you're going to be using your own packages, you should
use your own version of PEAR.php and all other PEAR classes. You
should be able to override the include_path setting in a .htaccess
file in your web directory (assuming you're running on apache ;-) to
use your own PEAR path before the ISP's include paths.
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--