pear

cannot install pear install phpunit/PHPUnit_Selenium

淺唱寂寞╮ 提交于 2019-12-11 06:42:18
问题 I am trying to install PHPUnit_Selenium using the command pear install phpunit/PHPUnit_Selenium The version of pear that i am running is 1.9.4. The above command returned Attempting to discover channel "phpunit"... Attempting fallback to https instead of http on channel "phpunit"... unknown channel "phpunit" in "phpunit/PHPUnit_Selenium" invalid package name/package file "phpunit/PHPUnit_Selenium" install failed Searching google I found this (a few times) as a suggestion. So I tried pear

PHP Bcrypt hashing

蓝咒 提交于 2019-12-11 06:37:13
问题 I want to use Blowfish hashing to hash password. crypt() does not support it in PHP versions prior to 5.3 My PHP version is 5.2.14. How can I use Blowfish hashing? Can I use PEAR's Crypt_Blowfish instead? 回答1: PEAR's Crypt_Blowfish is meant to stand in for PHP's MCrypt extension - it's a two-way encryption scheme, not for hashing. While bcrypt is based on Blowfish, it's not the same thing. Confusingly, PHP 5.3.0's CRYPT_BLOWFISH is a hashing algorithm. Is there a reason why upgrading to PHP 5

Require_once(Net/URL2.php): failed to open stream: no such file or directory

你说的曾经没有我的故事 提交于 2019-12-11 04:24:01
问题 I installed the pear/http_request2 version 2.2.1 using Composer in my project but when I am trying to make my first request I am getting this Warning and Fatal error: Warning: require_once(Net/URL2.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/jet/vendor/pear/http_request2/HTTP/Request2.php on line 24 Fatal error: require_once(): Failed opening required 'Net/URL2.php' (include_path='/Applications/XAMPP/xamppfiles/htdocs/jet/vendor/pear/pear

PEAR claims php was compiled with old module

元气小坏坏 提交于 2019-12-11 03:49:55
问题 I just upgraded to php 5.6.4. When i do pear installs of various packages it complains that if have a module mismatch. example: sudo pecl install xdebug Failed loading /usr/local/php-5.6.4/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: /usr/local/php-5.6.4/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: undefined symbol: zend_execute_ex Zend OPcache requires Zend Engine API version 220131226. The Zend Engine API version 220100525 which is installed, is outdated. PHP Warning:

Pear PHP UML Class Diagrams [closed]

冷暖自知 提交于 2019-12-11 02:36:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am trying to create graphical representations of existing code. I have tried to use VS.PHP (with Visual Studios 2010) but cant seem to generate class diagrams from this. I have tried to use Pear's PHP UML package which has produced a lot of JavaDoc style documentation and an XMI document. From what I have read,

Azure websites & MediaWiki: how to enable emails sending

▼魔方 西西 提交于 2019-12-11 01:28:06
问题 for example, when user creates an account, resets password etc. First step is to set mail server credentials in LocalSettings.php file, as per this document: http://www.mediawiki.org/wiki/Manual_talk:$wgSMTP#Example_using_Google_Mail But after you do this, you will get "PEAR mail package is not installed" error message. How to solve this? 回答1: Turns out it's relatively simple: Make sure your mail server credentials are correct FTP to root folder and rename index.php into index.php.old -

PHP: PEAR mail message error

99封情书 提交于 2019-12-11 00:56:49
问题 I can send an email by the code in this (url:http://stackoverflow.com/questions/712392/send-email-using-gmail-smtp-server-from-php-page) but the errors shown as following... Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /Users/abc/pear/share/pear/Mail/smtp.php on line 365 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /Users/abc

how to make https request using php Http_Request2()

故事扮演 提交于 2019-12-10 17:53:00
问题 i want to make a https request using pear http_request2($url) class. i am able to make http request but not https. and the website facilitate both http and https. No prob with server responding to https. require 'HTTP/Request2.php'; $url = 'https://collegedb2.ferryfair.com'; $r = new Http_Request2($url); $r->setMethod(HTTP_Request2::METHOD_POST); try { $response = $r->send(); } catch (Exception $exc) { $es = $exc->getTraceAsString(); $ets=$exc->__toString(); $egc=$exc->getCode(); $egl=$exc-

PHP Solr PECL Extension installation

若如初见. 提交于 2019-12-10 17:46:30
问题 I have installed pecl/solr using command, pecl install solr and pear using wget http://pear.php.net/go-pear.phar php go-pear.phar After Restart Apache , i am still getting error Fatal error: Class 'SolrClient' not found on php code $client = new SolrClient($options); Can any one please describe step by step installation of pecl/solr extension on Centos. 回答1: Just to simplify the procedure: 1 Install extension using pear install pecl/solr OR pecl install -n solr 2 Add this extension to php ini

PHP:Writing to excel file using PEAR

一世执手 提交于 2019-12-10 17:13:00
问题 I have installed PEAR, Spreadsheet_Excel_Writer and OLE. The sample program is executed successfully but when I try to read the file it shows garbage values. I also tried $workbook->setVersion(8); and $worksheet->setInputEncoding('UTF-8'); I am using this tutorial and Google lot for this problem. http://www.sitepoint.com/article/getting-started-with-pear/3/ Thanks in advance. 回答1: I try to use PEAR only when I really need to...you can easily generate an excel spreadsheet( assuming it's just