pear

PhpDocumentor installed via PEAR on OSX not working - missing files?

丶灬走出姿态 提交于 2019-12-21 04:16:45
问题 I'm basically new to PEAR (and PhpDocumentor); I installed PhpDocumentor using the PEAR CLI, and everything seemed to go fine... until I went to use it, at which point I got the following error: Warning: require(PhpDocumentor/phpDocumentor/phpdoc.inc): failed to open stream: No such file or directory in /usr/local/bin/phpdoc on line 40 Fatal error: require(): Failed opening required 'PhpDocumentor/phpDocumentor/phpdoc.inc' (include_path='.:/usr/share/pear') in /usr/local/bin/phpdoc on line 40

dot(.)s are missing here & there in the mail html while sending PEAR Mail_Mime emails

大城市里の小女人 提交于 2019-12-21 03:37:35
问题 I am sending a mail using PEAR's mail and mail_mime packages and sample code as below: $sendStart=array(); require_once('Mail.php'); require_once('Mail/mime.php'); $sendStart['mail'] =& Mail::factory('mail'); $sendStart['mime'] = new Mail_mime("\n"); $sendStart['mime']->setHTMLBody($html); $sendStart['headers']['Subject']=$title; $sendStart['headers']['X-SMTPAPI']='{"category": ["MailID-XXX"]}'; $body=$sendStart['mime']->get(array( 'html_charset'=>'UTF-8', 'text_charset'=>'UTF-8', 'head

How to set up your own PEAR Channel?

馋奶兔 提交于 2019-12-20 18:29:56
问题 I am looking for instructions on how to setup a PEAR channel for our project so that we can deploy it with the pear installer. I have searched the web for a while and cannot find any straightforward information. I followed this tutorial for a while, but I am having a hell of a time getting this to work. Does anyone know how to do this? Is there a simpler way? 回答1: It looks like you are one of the few people who want to do this. That tutorial you linked to appears to be the latest (!) but the

PEAR directory problem on Windows

柔情痞子 提交于 2019-12-20 09:45:30
问题 I've downloaded the ZIP archive of PHP and extracted it under my profile. I then needed some PEAR packages. go-pear.bat apparently installed PEAR just fine, I just needed to go into the pear.bat file afterwards and adapt the path to php.exe – no big deal and after that it ran. However, when I try installing something I get the following error: ERROR: failed to mkdir C:\php5\pear\data\Console_CommandLine\data Naturally, no write access is allowed in the root directory but I'm a little at a

Adding functions to PHP core

时光怂恿深爱的人放手 提交于 2019-12-20 03:51:26
问题 I have several functions that I wrote and I use regularly on my servers, is there a way I can add them to the core so I don't have to include them from external files? I am running PHP5 回答1: You could add your libraries as a PEAR extension. Then you could add it to your local PEAR repository. Pear is added to the default include path in php.ini. Then you can just use "pear install myextension" on your machines. If these are C functions you interface with in php (php extensions) then you can

PHP-PEAR require_once('DB.php');

拈花ヽ惹草 提交于 2019-12-19 10:37:09
问题 I've a problem with PEAR (PHP). This is the error: Warning: require_once(DB.php): failed to open stream: No such file or directory in /WWW/xxx.php on line 2 Fatal error: require_once(): Failed opening required 'DB.php' (include_path='.:/usr/share/php:/usr/share/pear') in /WWW/xxx.php on line 2 I've already installed PEAR (version 1.9.0) In my PHP file the first two lines are these: 1- <?php 2- require_once('DB.php'); Where's the problem? Thank you all! 回答1: You need to install the module:

PHPUnit , PEAR upgrading Errors

时光总嘲笑我的痴心妄想 提交于 2019-12-19 05:43:13
问题 Note : I've read all questions about this problem PEAR is installed and configured on my system (Ubuntu 11.10 + Apache/2.2.20). Because <?php require_once 'System.php'; var_dump(class_exists('System', false)); ?> Returning this : bool(true) (PEAR Manual : Checking if PEAR works Step 4) When i tried to use phpunit i'm getting this error. PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38 PHP Fatal error:

Pear error messages with PHP5.3.0

主宰稳场 提交于 2019-12-19 04:05:28
问题 I get a LOT of errors when i Open up a newly installed PEAR package on a WAMP server. Here's the error messages. What can i do? Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 650 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 697 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 757

MAMP PEAR configuration is pointing to local directories

感情迁移 提交于 2019-12-19 03:58:39
问题 I am using MAMP 2.0.5 and I have an issue upgrading PEAR MAMP: How to upgrade PEAR The issue is that PEAR is always installed in the "local" PEAR directory instead of the MAMP PEAR directory. My MAMP PEAR configuration is the following: sudo /Applications/MAMP/bin/php/php5.3.6/bin/pear config-show Configuration (channel pear.php.net): ===================================== Auto-discover new Channels auto_discover 1 Default Channel default_channel pear.php.net HTTP Proxy Server Address http

Using Gmail SMTP to send email with PHP

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 03:43:05
问题 I have a problem I have been working on for about a week and can't find an answer. As a preface to this all, I have searched the internet for all sorts of things. There are a lot of answers for this problem, but none seem to be helping me. I am somewhat new to PHP and a lot of the stuff I am asking for (been using it over the past few months). Let me get to the base of the problem: I am on a school network with my own server set up in my dorm room. I am creating a website where I need to