Space web hosting - 525Chapter 28PEAR PHP Foundation Classes (PFC) The PEAR
525Chapter 28PEAR PHP Foundation Classes (PFC) The PEAR Foundation Classes (PFC) are a subset of the PEAR module repository. The mod- ules that are part of the PFC are written to an especially high standard of quality, have beenextensively tested, and are considered very stable and reliable. The PFC are distributed withPHP itself, so you do not have to download or install them separately. As of PHP5, the mem- bers of the PFC are these packages: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, andphpUnit. In writing modules for the PFC, programmers must aim for broad compatibility. They shouldavoid using any resource that s particular to a specific operating system, and try to take inputand give output in the most generic possible form (for example, in plain text rather than asSOAP-formatted messages). Programmers also need to keep in mind possible future develop- ments in PHP itself information that can be gleaned from mailing lists and other communityresources and write their software so it is unlikely to break when new releases appear. PHP Extension Code Library (PECL) The PHP Extension Community Library (PECL) is conceptually very similar to PEAR, and in fact they share the PEAR Package Manager infrastructure (that is, PECL modules can beaccessed and installed via the PEAR Package Manager). The main difference is that PECL is concerned with extensions to PHP itself, in the form of C modules that attach to the PHPengine. As C programs, extensions typically execute faster and more efficiently than the modules contained in the PEAR repository. PECL used to be called the PEAR Extension Code Library and was spun off from PEAR inOctober 2003. The new PECL homepage is http://pecl.php.net. The PEAR Coding StyleNewspapers (as well as publishers of books!) spend a lot of time and effort establishing stylerules that govern how their writers use language. Are people identified by their last names(as in The Washington Post) or by their honorifics and last names (as in The EconomistandThe New York Times)? It s a matter of style. The same sorts of questions arise among programmers, except that the issues at stake areusually matters of formatting rather than syntax. Where do brackets go, and how is code laidout on a page? It s important to have standard (if arbitrary) answers to these questions, because a standard style can be a real aid to error-spotting and maintainability. PEAR defines its style rules online at http://pear.php.net/manual/en/standards.php. This section calls attention to some of the most important ones.
Note: If you are looking for cheap webhost to host and run your apache application check Vision jboss web hosting services