How to load Pear modules? Newbie help
|
|
I want to use Pear’s Mail function. But, require ‘Mail.php’; can’t find Mail.php. I notice there are some Pear stuff in the php directory, but I don’t know how to add missing modules to the Mampstack, or if that is my problem in this case. Thanks in advance for your help. |
|
|
Hi Andrew, You can install the Mail pear package with this command:
and you can see something like this:
Then you can check that the Mail.php file is in the php/lib/php directory. I hope it helps you. |
|
|
I think I solved my own problem. I executed: <mampstack-dir>/php/bin/pear/pear install mail That placed Mail.php inside: <mampstack-dir>/php/lib/php |
|
|
Oh thanks beltran. Apparently I discovered that already before refreshing this page :-) |
|
|
Hehehe :) Nice dude. |
