pear

How do I update phpunit?

▼魔方 西西 提交于 2019-12-05 11:00:25
I have already tried everything , including https://stackoverflow.com/a/8740349/251311 and all possible channel upgrade and clear cache commands. But still: $ sudo pear install -a -f phpunit/PHPUnit downloading PHPUnit-3.6.12.tgz ... Starting to download PHPUnit-3.6.12.tgz (120,240 bytes) ..........................done: 120,240 bytes install ok: channel://pear.phpunit.de/PHPUnit-3.6.12 while: $ pear list-upgrades Channel pear.php.net: No upgrades available pear.phpunit.de Available Upgrades (stable): ============================================ Channel Package Local Remote Size pear.phpunit.de

How Do I Check To See If PEAR Is Installed On My Server or Not?

北城余情 提交于 2019-12-05 06:08:08
I am getting error like: Warning: include_once(Net/SMTP.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/lib/php/Mail/smtp.php on line 348 Warning: include_once() [function.include]: Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/local/lib/php/Mail/smtp.php on line 348 Fatal error: Class 'Net_SMTP' not found in /usr/local/lib/php/Mail/smtp.php on line 349 My code: require_once 'Mail.php'; $from = "me@example.com>"; $to = "you@gmail.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host =

win7 wamp 下安装pear phpunit

折月煮酒 提交于 2019-12-05 04:04:27
1,安装pear 用官方的方法 :request http://pear.php.net/go-pear.phar in your browser and save the output to a local file go-pear.phar. You can then run “ php go-pear.phar”in a Windows Command Prompt to start the update process. After changing php.ini , you need to restart your web server. ( http://pear.php.net/manual/en/installation.getting.php ) 2 ,安装phpunit 先安装下列包 pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear channel-discover pear.symfony-project.com pear update-channels pear upgrade-all 最后运行 pear install phpunit/PHPUnit或者pear install --alldeps phpunit/PHPUnit 3

Using Mail_Mime to send attachment to GMail, receiving “noname” attachment

删除回忆录丶 提交于 2019-12-05 01:45:32
问题 I've got a pretty simple website form that can take attachments. It sends to a gmail address using gmail's smtp. Everything is working great except that the file arrives as "noname" - no filename or extension. If you download the attachment and rename it with the correct filename, the file opens just fine. I've tried adding more arguments to addAttachment() such as the filetype and the filename, but they don't show up in the email. When I click on "Show Original" in gmail, this is all I see

How can I get a phpunit.bat after install phpunit via PEAR?

依然范特西╮ 提交于 2019-12-05 00:59:26
I need a phpunit.bat to configure my NetBeans IDE. I'm using wamp , and I just install phpunit via pear using these instructions: Before start using PEAR, Update by downloading last go-pear from http://pear.php.net/go-pear.phar and save it into: C:\wamp\bin\php\php5.3.3\PEAR Then: cd C:\wamp\bin\php\php5.3.0> php -d phar.require_hash=0 PEAR/go-pear.phar pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear channel-discover pear.symfony-project.com pear install phpunit/PHPUnit After do that I can't find any phpunit.bat or phpunit.php How can I get a phpunit.bat (or

Problems installing Symfony 2.4.1 lib-icu 4.4 dependency

ⅰ亾dé卋堺 提交于 2019-12-05 00:28:12
问题 I'm having a problem identical to this one, but the solution provided there isn't working for me. I downloaded the Symfony 2.4.1 Standard Vendors with Vendors package from the Symfony Downloads Page. After extracting the files and downloading composer.phar, I run php composer.phar install and get this error: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of

System or local when installing PEAR for PHPUnit

社会主义新天地 提交于 2019-12-04 18:40:16
I am using XAMPP 1.8.1. I need to write code with PHPUnit. When I try to install PEAR using command prompt, I get the message below: Are you installing a system-wide PEAR or a local copy? Could some one suggest which option I should use? Thanks in advance. PEAR is usually installed system-wide. The benefit of this is that the various packages can be reused between different projects. One reason why you might install a local copy of PEAR is that the administrator[s] of the server you are installing on might be reluctant to install additional packages or upgrade existing ones. By performing a

Putting PEARs php_dir into include_path in php.ini

浪尽此生 提交于 2019-12-04 16:54:51
I'm unsure of how to alter my php.ini file according to the instructions on the PEAR website It says "In every case, PEAR's php_dir should be in the include path. If not, add it in your system's php.ini." On my system(Mac 10.6.6), this is PEAR's php dir /Users/michaelmitchell/pear/share/pear On my system, this is the php.ini include path .:/Applications/MAMP/bin/php5.3/lib/php What should the resulting path look like in my php.ini? Do I delete the current path and replace it with PEAR's php dir path? or do I somehow integrate the two? Thanks for your help. If you can please type out the whole

Pear install for macports PHP5

霸气de小男生 提交于 2019-12-04 16:05:34
问题 I have PHP5 installed via macports in /opt/local/..the default location for macports. There's no portfile for pear. If I do a standard pear install from the pear site what directory location should pear be placed in to work with PHP? 回答1: While the curl option works, it won't update as you update your ports. An alternative: sudo port install php5 +pear This will install the variant of php5 with pear, in the same location as downloading above, and it will update as you update macports. 回答2: I

PHPUnit not recognizing cURL extension — can't install selenium test

和自甴很熟 提交于 2019-12-04 14:53:06
I'm on a Windows 7 machine running a WAMPserver and I'm trying to install the Selenium extension for PEAR. However, whenever I try to install it, I'm told that it requires the already-enabled PHP extension "curl": pear install phpunit/PHPUnit_Selenium Package "pear.phpunit.de/PHPUnit_Selenium" dependency "pear.phpunit.de/PHPUnit" has no releases phpunit/PHPUnit_Selenium requires PHP extension "curl" No valid packages found install failed So I go to check my php.ini file to see if it's enabled. Sure enough, there it is: extension=php_apc.dll ;extension=php_bz2.dll extension=php_curl.dll