pear

ERRNO: 8192 when trying to send mail

我与影子孤独终老i 提交于 2019-12-11 18:35:32
问题 I have the following code which works when i put it in any blank php page,but when i try to put the code in another php page where i already have some codes in it, i get the error: ERRNO: 8192 TEXT: Assigning the return value of new by reference is deprecated LOCATION: C:\xampp\php\PEAR\Mail.php, line 154, include('Mail.php'); $mail = Mail::factory("mail"); $headers = array("From"=>"xyz@gmail.com", "Subject"=>"Your order has been placed "); $body = "lol"; $mail->send("abc@live.com", $headers,

Need to install propel_generator version 1.3.5

試著忘記壹切 提交于 2019-12-11 17:58:44
问题 I need to install propel_generator version 1.3.5 on my machine. I tried to install it using PEAR via: pear install propel/propel_generator-1.3.5 but it failed with the following message: Failed to download propel/propel_generator, version "1.3.5", latest release is version 1.6.7, stability "stable", use "channel://pear.propelorm.org/propel_generator-1.6.7" to install install failed Following this answer I checked http://pear.propelorm.org/Chiara_PEAR_Server_REST/r/propel_generator/allreleases

Pear downloading packages instead of installing after php downgrading to 5.2 on ubuntu 10.04

假装没事ソ 提交于 2019-12-11 16:58:09
问题 I've downgraded php to 5.2 in ubuntu 10.04 and it seems i can't install new pear packages. the existing packages i had by typing pear list are : Package Version State Archive_Tar 1.3.3 stable Console_Getopt 1.2.3 stable PEAR 1.9.0 stable Structures_Graph 1.0.2 stable XML_Util 1.2.1 stable In /usr/share/php/PEAR there are few packages which seems not to be appearing on the list. I wanted to install SOAP but the command pear install pear.php.net/SOAP-0.12.0 is not downloading the dependent

PHP require_once(): Failed opening required include_path

梦想与她 提交于 2019-12-11 14:49:23
问题 Im using Php 7.1 in windows. Error i get: PHP Fatal error: require_once(): Failed opening required 'Suite_dev/service/v4_1/SugarWebServiceImplv4_1.php' (include_path='D:/Ampps/php-7.1/pear') in D:\Ampps\www\Suite_dev\custom\service\v4_1_custom\SugarWebServiceImplv4_1_custom.php on line 4 Workaround i did in php ini file: ; Windows: "\path1;\path2" include_path = "{$path}\php-7.1\pear" Downloaded and installed php pear and tested pear is working. Even after pear is installed, i still get above

PHP: Autoloading PEAR namespaced classes within PSR-0 namespaced classes conflict

谁说胖子不能爱 提交于 2019-12-11 13:52:53
问题 For my application I am using PSR-0 namespaces. Everything works beautiful! Until I wanted to use Twig as template parser, Twig uses PEAR pseudo namespaces. Like Twig_Loader_Filesystem. The problem is that when I want to use Twig inside my name-spaced application like this: <?php namespace Tact\ViewManager; class ViewManager { public function init() { $loader = new Twig_Loader_Filesystem($this->templatepath); $this->twig = new Twig_Environment($loader); } } ?> PHP will tell my autoloader to

Dreamhost - Latest version of PEAR

て烟熏妆下的殇ゞ 提交于 2019-12-11 12:15:10
问题 I'm on SSH on my Dreamhost account. I need to install the HTTP_Request2 PHP library via pear pear install HTTP_Request2 gives the following error pear/HTTP_Request2 requires PEAR Installer (version >= 1.9.2), installed version is 1.9.1 Here's the output of pear -V PEAR Version: 1.9.1 I tried forcing an upgrade on the Dreamhost server pear upgrade --force http://pear.php.net/get/PEAR-1.9.2 and even pear install PEAR-1.9.4 but this errors out to: pear/PEAR is already installed and is the same

How to use Pear with xampp?

删除回忆录丶 提交于 2019-12-11 12:08:54
问题 How do i include Pear's QuickForm into a php file if Pear is already installed in xampp? 回答1: I ran go-pear.bat from the command line, and it ran a setup program to configure my system for PEAR. When it was finished I was left with some new folders and a pear.bat file. I tested it with "pear install -f Text_CAPTCHA" and everything seemed to work. 来源: https://stackoverflow.com/questions/4010066/how-to-use-pear-with-xampp

PEAR Spreadsheet_Excel_Writer insertBitmap() not working correctly

别来无恙 提交于 2019-12-11 11:37:49
问题 I have to add a image to the spreadsheet using PEARL Spreadsheet_Excel_Writer library and I have used insertBitmap() method for that, but after the execution of the code, the file is created and when going to open the file it will gives me below error: Excel found unreadable content in 'testXls.xls'. Do you want to recover the content of workbook? ...... This is how I'm adding the image in the code, $excel = new Spreadsheet_Excel_Writer($saveDirectory); $sheet =& $excel->addWorksheet('Class I

Pear on windows displaying different version numbers

江枫思渺然 提交于 2019-12-11 10:39:09
问题 C:\PHP>pear upgrade pear pear/pear is already installed and is the same as the released version 1.9.3 upgrade failed C:\PHP>pear -V PEAR Version: 1.9.0 PHP Version: 5.2.17 Zend Engine Version: 2.2.0 As you can see pear is confused to what version it is running. How can I go about fixing this so that PEAR is running on 1.9.3? Update C:\PHP>pear upgrade -f pear downloading PEAR-1.9.3.tgz ... Starting to download PEAR-1.9.3.tgz (295,774 bytes) ....................................................

Pear Packages not working

百般思念 提交于 2019-12-11 07:17:11
问题 I've been trying to use a few PEAR packages for a few hours now to no avail. PEAR itself is functioning, and I believe I set all of the configuration variables correctly, but when I try to run any of my packages from the command line, I get PHP errors telling me the required file wasn't found. For example, with phpdoc : $ phpdoc PHP Warning: require(PhpDocumentor/phpDocumentor/phpdoc.inc): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/pear/bin/phpdoc on line 40