UbuntuHelp:PhpPear
来自Ubuntu中文
Oneleaf(讨论 | 贡献)2007年5月24日 (四) 15:23的版本 (新页面: {{From|https://help.ubuntu.com/community/PhpPear}} {{Languages|UbuntuHelp:PhpPear}} == PHP PEAR Introduction == PHP PEAR is a PHP Extension and Application Repository == Modules == PHP...)
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
PHP PEAR Introduction
PHP PEAR is a PHP Extension and Application Repository
Modules
PHP PEAR modules
$ aptitude search php | grep -i pear p dh-make-php - Creating debian source packages for pear a p php-auth - PHP PEAR modules for creating an authentic p php-date - PHP PEAR module for Date and Time Zone Cla p php-db - PHP PEAR Database Abstraction Layer p php-file - PHP Pear modules for common file and direc p php-html-template-it - PEAR HTML Template IT p php-http - PHP PEAR module for HTTP related stuff p php-image-canvas - Image_Canvas module for PEAR p php-image-graph - Image_Graph module for PEAR p php-mail - PHP PEAR module for sending email p php-mail-mime - PHP PEAR module for creating and decoding p php-net-sieve - net_sieve module for PEAR p php-net-smtp - PHP PEAR module implementing SMTP protocol p php-net-socket - PHP PEAR Network Socket Interface module p php-pear - PEAR - PHP Extension and Application Repos p php-xml-parser - PHP PEAR module for parsing XML p php4-pear - PHP Extension and Application Repository ( p php4-pear-log - Log module for PEAR
Installation
Install
$ aptitude install php-pear
and any optional PHP PEAR modules such as
$ aptitude install php-db $ aptitude install php-image-graph
NOTES
1) Some PHP PEAR modules seem to be missing from Ubuntu and you will have to manually install them by using PEAR
$ pear install Image_color $ pear install Image_Text $ pear install channel://pear.php.net/Image_Text-0.5.2beta2
2) If you are trying to use Image_graph you may get
Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /mnt/sites/asmtennis.net/web/PEAR/Image/Canvas/GD.php
unless you have installed TrueType fonts and created a symbolic link to them
$ sudo -i # cd /usr/share/php/Image/Canvas # ln -s /usr/share/fonts/truetype/msttcorefonts/ Fonts $