Search code examples
phppear

Pear SOAP and XAMPP on Ubuntu


All,

I have installed xampp for linux on ubuntu 9.10. The installation directory is /opt/lampp. The xampp website says PEAR comes with the installation.. I am relatively new to PEAR and want to know the answers for following:

  1. Is PEAR installed with xampp or need to be installed separately using synaptic package manager? I browse to /opt/lampp/bin directory and see "pear" there, but when i type it in the command line, it says

    "The program 'pear' is currently not installed. You can install it by typing: sudo apt-get install php-pear pear: command not found "

  2. I want to use PEAR:SOAP package in my PHP code. How to use that? Do I need to set any paths to the pear in my php.ini?

Thanks


Solution

  • I figured it out.. xampp comes with pear... So, what I did was..

    1. cd /opt/lampp/bin
    2. sudo ./pear install soap
    3. In PHP code, "require_once("SOAP/Client.php");

    That's all !! :)