Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
The PEAR Installer Manifesto

You're reading from  The PEAR Installer Manifesto

Product type Book
Published in Oct 2006
Publisher Packt
ISBN-13 9781904811190
Pages pages
Edition 1st Edition
Languages
Author (1):
Gregory Beaver Gregory Beaver
Profile icon Gregory Beaver

Table of Contents (11) Chapters

The PEAR Installer Manifesto
Credits
About the Author
About the Reviewers
1. Preface
1. Acquiring PEAR: What is it and How do I Get It? 2. Mastering PHP Software Management with the PEAR Installer 3. Leveraging Full Application Support with the PEAR Installer 4. Clever Website Coordination Using the PEAR Installer 5. Releasing to the World: PEAR Channels 6. Embedding the PEAR Installer: Designing a Custom Plug-In System

Distributing Libraries and Applications


The most important thing to understand is how the PEAR installer actually installs files. Most PHP developers distribute their applications as unzip-and-go archives. As such, we tend to assume that files will be in the exact same relative locations on the end user's machine that they are on our development machine. PEAR, however, is designed to be far more flexible than this.

For instance, it is common for shared web hosts to install a global copy of PEAR, but users can also install local copies and use the include_path from php.ini to choose local packages when available and global ones when they are not. In order to make this flexibility possible, PEAR groups and installs files by their type or file role.

Each file role has a corresponding configuration entry that defines the location at which all files of that file role will be installed. For instance, the php file role has a configuration variable named php_dir that defines the directory into which...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}