Page 1 of 1

How to make PEAR Working in XAMPP

PostPosted: 09. October 2010 17:41
by code_play
Hello to all,

I am in the process of learning PHP and OOP PHP. I just found out that there are some existing libraries like PEAR where PHP programmers can use for developing easier.

I am planning to start learning on how to use PEAR in XAMPP.

Can anyone tell me how to make PEAR working in XAMPP?

Thanks in advance.... :)

Re: How to make PEAR Working in XAMPP

PostPosted: 09. October 2010 17:43
by Altrea
PEAR is already implemented in the latest XAMPP releases.
To load new PEAR classes just use the pear CLI with its commands

Re: How to make PEAR Working in XAMPP

PostPosted: 09. October 2010 18:36
by code_play
Thanks for the reply Altrea.

It's good to know that PEAR is already implemented...

Sorry --- I am so stupid... How can I make sure the PEAR is running on XAMPP...

Is there any sort of commands I can run or scripts?

Thanks again....

Re: How to make PEAR Working in XAMPP

PostPosted: 09. October 2010 18:49
by Altrea
code_play wrote:How can I make sure the PEAR is running on XAMPP...

Pear isn't something like a program which you have to start. Its just a really huge class library with a CommandLineInterface (CLI)

If you want to check, pear is correctly included try this:

If you use XAMPP 1.7.3 you can use the XAMPP Administration Page.
Just type in http://localhost/ to get to the XAMPP administration panel.
There you have a pearinfo() Link in your navigation bar.

Re: How to make PEAR Working in XAMPP

PostPosted: 10. October 2010 18:42
by code_play
thanks for that...

I am able to see that PEAR is running and some packages included with it...

Can you give me a sample on how to include those in my applications?


Thanks!

Re: How to make PEAR Working in XAMPP

PostPosted: 10. October 2010 18:55
by Altrea
PEAR is already added to your php include path.
So every class you instantiate and which can't be found in your own includes will be searched in your PEAR library too.

How every PEAR class works depends on the class you want to use (like every other PHP class too).

Re: How to make PEAR Working in XAMPP

PostPosted: 11. October 2010 21:32
by code_play
Can you tell me how can I include a pear class from its folder?