How to download PEAR package

I just installed package PEAR( Event_Dispatcher) and I cannot use classes in this package. When I run the command pear list, I see a new package, however I see that the classes in the package are saved in /usr/lib/php(I have a Mac).

Is there a boot part after installing the package PEAR? How exactly do I move files to the right place? Can I just cut and paste the folder into the root folder PEAR?

Thank!

+3
source share
2 answers

PEAR include() require(). , () MySQL (mysql.so/mysql.dll). /usr/lib/php include_path, PHP , include('nameofpackage.php').

+1

PEAR , php.ini PEAR php.ini. , , PEAR lib.

, PEAR- MDB2 , /MDB 2, PHP script /MDB 2.php, , PHP-, :

require_once("MDB2.php").

, , , , .

0

Source: https://habr.com/ru/post/1765546/


All Articles