For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > February 2008 > Re: [PEAR] PEAR newbie looking for guidance!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] PEAR newbie looking for guidance!
tcregger

2008-02-01, 7:17 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Mike.

Sorry for the duplication of email, I wanted to respond to the list the
first time as well but didn't, I also added a comment to this email that
wasn't in the other.

On your host server, check in /usr/share/php (or /usr/share/php5) for a
directory called PEAR.

or

at the command line type: pear list

pear list should (if pear is installed) show all of the pear packages
that are installed. Pear is modular, you don't have to install
everything, just what you need.

If that doesn't work (and pear is not installed) check out this page:
http://pear.php.net/manual/en/installation.getting.php

If that works, then type: pear -h

That will give you the command opts for the pear manager. You can use
that to install the pear packages you want to use.

Additional comment:
| I guess there's also a GUI installer/manager too but I've found the
command line tool does everything I need it to.


Make sure /usr/share/php (or php5) is in your include_path in your
php.ini file... it should be by default.

Then from there, head on over to the pear site:
http://pear.php.net/
and:
http://pear.php.net/manual/

and start reading.

I've been using pear for over a year now, mostly HTML_QuickForm and
HTML_QuickForm_Controller. I'm not an expert and I know I won't be able
to answer all your questions but I'd be glad to help where I can.

Peace
- -Troy


Galloway Web Design wrote:
| Hi,
|
| I'm now a reasonably competent PHP programmer and want to try my hand at
| working with PEAR, however, firstly I'm not sure whether it is already
| installed with PHP on my web host (how do I find out?) and I don't know
| how to access it in order to install new packages (help?).
|
| Hope there's someone out there with a lot of patience to help me!!
|
| Mike.
|

- --
Troy Cregger
Lead Developer, Technical Products.
Kennedy Information, Inc
One Phoenix Mill Ln, Fl 3
Peterborough, NH 034 58
Phone: (603)924-0900 ext 662
Fax: (603)924-4460
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHo7ZagROQmd/ zk4sRAqTkAJ9ueJaa5Uh0kKYMqSHf7NQHiPO5xQC
dEBLp
1OLXfFRHD1Gy5G7CYofTsSE=
=LigY
-----END PGP SIGNATURE-----
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com