Wrox Programmer Forums
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2003, 06:20 AM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default PEAR

I'd like to start using PEAR on W2K where I develop prior to Linux implementation. Is this possible and if so a pointer to how would be nice.

Thanks

Philip Painter
 
Old June 6th, 2003, 09:24 AM
Authorized User
 
Join Date: Jun 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Dan Jallits Send a message via MSN to Dan Jallits Send a message via Yahoo to Dan Jallits
Default

The following content is an excerpt from "PHP & MySQL WEB DEVELOPMENT: Second Edition" written by Luke Welling and Laura Thomson and published by SAMS.

------------------------------------------------------------------------------------

PHP 4.3 is supposed to come with the PEAR package installer. At the time of writing [NOTE: February 2003] the Linux version installs automatically, but the Windowsversion did not include this. If you are using Windows or an earlier version of PHP (from 4.1 to 4.23) you will need to download the package installer separately. You can obtain this from http://go-pear.org.

There is exactly one script at that site. Save it as go-pear. You need to run this script through PHP from the command line. Go to the command line and type "php go-pear.

The go-pear script will ask you a few straightforward questions about where you would like the package installer and the standard PEAR classes installed, and will then download and install them for you.

At this stage you should have an installed version of the PEAR package installer. You can then simply install packages by typing pear install package-name

------------------------------------------------------------------------------------

I hope this helps. For more information see Apendix A page 809-810. I must also apologize for quoting a non-Wiley book within this great forum. However, the needs of developers come first. Good luck.

Best Regards,

Dan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PEAR spraveens Beginning PHP 1 December 3rd, 2006 02:07 AM
Pear functions is not working vinodkalpaka Pro PHP 2 August 5th, 2005 12:56 AM
PEAR::Auth and PEAR::Auth_HTTP Ceriwaen Beginning PHP 1 February 18th, 2005 04:36 PM
What is PEAR? anshul PHP How-To 1 August 9th, 2004 11:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.