How to make PEAR Working in XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to make PEAR Working in XAMPP

Postby code_play » 09. October 2010 17:41

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.... :)
code_play
 
Posts: 4
Joined: 09. October 2010 17:27

Re: How to make PEAR Working in XAMPP

Postby Altrea » 09. October 2010 17:43

PEAR is already implemented in the latest XAMPP releases.
To load new PEAR classes just use the pear CLI with its commands
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to make PEAR Working in XAMPP

Postby code_play » 09. October 2010 18:36

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....
code_play
 
Posts: 4
Joined: 09. October 2010 17:27

Re: How to make PEAR Working in XAMPP

Postby Altrea » 09. October 2010 18:49

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to make PEAR Working in XAMPP

Postby code_play » 10. October 2010 18:42

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!
code_play
 
Posts: 4
Joined: 09. October 2010 17:27

Re: How to make PEAR Working in XAMPP

Postby Altrea » 10. October 2010 18:55

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).
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to make PEAR Working in XAMPP

Postby code_play » 11. October 2010 21:32

Can you tell me how can I include a pear class from its folder?
code_play
 
Posts: 4
Joined: 09. October 2010 17:27


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 85 guests