pear

pecl installs for previous php version

旧街凉风 提交于 2019-12-03 02:46:38
问题 I've upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) version of PHP instead of version 5.4. PHP version: $ php -v PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans Pear $ pear version PEAR Version: 1.9.4 PHP Version: 5

Pear Mail, how to send plain/text + text/html in UTF-8

China☆狼群 提交于 2019-12-03 02:34:50
I'm trying to send an email in both text and html, but I can't correctly send the right headers. In particular, I'd like to set the Content-Type header, but I can't find how to set it separately for html and text parts. This is my code: $headers = array( 'From' => 'info@mydomain.com', 'Return-Path' => 'info@mydomain.com', 'Subject' => 'mysubject', 'text_encoding' => '7bit', 'text_charset' => 'UTF-8', 'html_charset' => 'UTF-8', 'head_charset' => 'UTF-8', 'Content-Type' => 'text/html; charset=UTF-8' ); $mime = new Mail_mime(); $html = '<html><body><b>my body</b></body></html>'; $text = 'my body'

Setting up PHPUnit on OSX

坚强是说给别人听的谎言 提交于 2019-12-03 02:27:27
问题 Though I'm sure others have eventually managed to figure this out, I've been following the various documentation out there and have been having a heck of a rough time of it. http://www.phpunit.de/manual/current/en/installation.html Makes it sound pretty easy. However depending on your setup, you might be going down a rabbit hole. PEAR for example must be of a version higher than 1.8.1. I had 1.8.0 at the time, so I went to find out how to update PEAR PEAR upgrade-all Gives an error. No access

PEAR directory problem on Windows

寵の児 提交于 2019-12-02 19:44:19
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 loss to know how exactly PEAR thinks it should install anything in a location that neither exists nor is

how to use php pear mail

删除回忆录丶 提交于 2019-12-02 18:18:48
How to include mail.php for using PHP Pear Mail. I'm using the following code in test.php file: require_once "Mail.php"; $from = "<test@gmail.com>"; $to = "<testing@gmail.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://smtp.gmail.com"; $port = "465"; $username = "<testtest@gmail.com>"; $password = "testtest"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR:

How to use PEAR behind proxy?

拈花ヽ惹草 提交于 2019-12-02 17:59:29
Initially I used the following with no success; export http_proxy=http://username@password:host:port Worth noting I don't get a connection error directly, instead; [root@pal ~]# sudo pear info PHP_CodeSniffer-1.2.1 No information found for `PHP_CodeSniffer-1.2.1' Instead of using the system's http_proxy, set the proxy directly in pear's config; pear config-set http_proxy http://username:password@yourproxy:80 You also may have an issue with your sudo user having different configuration from your user for pear. If you make this : pear config-set http_proxy http://username:password@yourproxy:80

pecl installs for previous php version

匆匆过客 提交于 2019-12-02 16:20:54
I've upgraded my MacBook to Mavericks and ruined my development environment. The problem I have right now is that my pear/pecl still tries to install for my previous (5.3) version of PHP instead of version 5.4. PHP version: $ php -v PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans Pear $ pear version PEAR Version: 1.9.4 PHP Version: 5.4.17 Zend Engine Version: 2.4.0 Running on: Darwin MBP-retina.local 13.0.0 Darwin Kernel Version 13.0

Setting up PHPUnit on OSX

梦想与她 提交于 2019-12-02 14:22:18
Though I'm sure others have eventually managed to figure this out, I've been following the various documentation out there and have been having a heck of a rough time of it. http://www.phpunit.de/manual/current/en/installation.html Makes it sound pretty easy. However depending on your setup, you might be going down a rabbit hole. PEAR for example must be of a version higher than 1.8.1. I had 1.8.0 at the time, so I went to find out how to update PEAR PEAR upgrade-all Gives an error. No access. sudo PEAR upgrade-all Works, but upgrades the PEAR install owned by the user 'sudo' (and not your

No releases available for package “pecl.php.net/intl”

北慕城南 提交于 2019-12-02 03:15:22
I'm trying to install intl for php. When I'm running sudo pecl install intl it gives me an error No releases available for package "pecl.php.net/intl" . I have tried to clear cache and also I tried to upgrade pear and pecl . Nothing. Here my pear and php versions: PEAR Version: 1.9.4 PHP Version: 5.6.3 Zend Engine Version: 2.6.0 Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64 Any ideas? Thanks in advance! To get it off the unanswered list: Well, problem solved! If you can't install intl by pecl you

Xampp 1.7.4 and PHP 5.3.5 (Deprecated warnings)

让人想犯罪 __ 提交于 2019-12-01 11:55:27
I just upgraded my Xampp installation to 1.7.4 I had a working script (jquery calling PHP script and showing the returned value). After upgrade, my jquery is getting the result correctly, but in addition to the results, there are also some warnings that are returned, hence stopping my script to show the result (I checked in firebug). Here are the warnings: Deprecated : Assigning the return value of new by reference is deprecated in D:\xampp\php\PEAR\Config.php on line 80 Deprecated : Assigning the return value of new by reference is deprecated in D:\xampp\php\PEAR\Config.php on line 166