Reputation: 5543
I am having my PHP installation as "without pear" . I want to install PHP PEAR mail package so that i can send email from my application.
How can I enable the PHP Pear so that I can send Emails?
Upvotes: 0
Views: 13113
Reputation: 41080
PEAR is a collection of PHP classes, you don't have to "install" it. Simply download a package (which is normally one class and some helper classes) point (with require_once
) your code to the main package class.
Upvotes: 0
Reputation: 132071
In many distributions you can use the distributions package manager, for example
sudo apt-get install php-pear
Upvotes: 1
Reputation: 4930
$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar
see the manual http://pear.php.net/manual/en/installation.getting.php
also in deb based os
sudo apt-get install php-pear
Upvotes: 4
Reputation: 1760
The "command configure" section of phpInfo shows the commands that where used during the compile of php. In order to enable pear you would need to recompile PHP with pear support..
http://pear.php.net/manual/en/installation.php
Upvotes: 1