pear

Installing PHP Zip Extension

て烟熏妆下的殇ゞ 提交于 2019-11-26 18:11:27
问题 I'm attempting to install the PHP Zip extension. My server does not have external internet access, so I downloaded it myself from PECL: http://pecl.php.net/package/zip. I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran: pear install zip-1.10.2.tgz and added extension=zip.so to php.ini as instructed. I can see that zip.so was created and placed in the right extension_dir folder as well. I restarted apache and then checked to see if it was loaded by running:

Installing PHPUnit via PEAR

我的梦境 提交于 2019-11-26 15:39:28
问题 I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0 . After I discover channel pear.phpunit.de and try to use one of following commands: pear install phpunit/PHPUnit pear install --alldeps phpunit/PHPUnit pear install --onlyreqdeps phpunit/PHPUnit it fails, giving me following error: No releases available for package "pear.phpunit.de/PHPUnit" install failed I found several threads from people with the same problem, but upgrading PEAR to the newest version usually worked for them. Also

Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)

痴心易碎 提交于 2019-11-26 15:24:00
问题 So it looks like the new 'System Integrity Protection' lockdown of /usr (among other directories) makes pear and pecl a non-starter. Has anyone found a workaround short of disabling it? 回答1: There's a much easier way — no need to disable SIP or download your own copy: sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin 回答2: You shouldn't install binaries into system /usr , use /usr/local instead. The pecl and pear commands should come along with PHP when

sending mail with php & escaping hotmails junk folder

心已入冬 提交于 2019-11-26 12:40:53
问题 I have been trying to get PEAR::mail to successfully deliver emails to hotmail users without being flagged as SPAM and ending up in the junk folder, i have no problems with yahoo/gmail only with hotmail. google suggested that this is a common problem with hotmail and that possible causes can include incorrect reverse DNS for main IP of the server lack of SenderId/SPF records being blacklisted having checked all of the above i can only think of one other reason - incorrectly formatted headers

How to install an older version of PHPUnit through PEAR?

落爺英雄遲暮 提交于 2019-11-26 12:14:07
问题 I would like to downgrade my installation of PHPUnit 3.4 to 3.3. I\'m just not sure how to do it. How do I install version 3.3 of PHPUnit on Ubuntu using PEAR? 回答1: You need to know the exact version number you wish to downgrade to. At the time of writing, the last release you're after is 3.3.17, which can be found out by checking the appropriate PEAR channel. To downgrade to that particular version execute two commands: pear uninstall phpunit/PHPUnit pear install phpunit/PHPUnit-3.3.17 回答2: