pear

Issues while installing pear.phpunit.de/PHPUnit

梦想与她 提交于 2019-12-18 19:04:35
问题 I'm trying to tell pear that where to find PHPUnit by using this command: sudo pear channel-discover pear.phpunit.de The output was: Discovering channel pear.phpunit.de over http:// failed with message: channel-add: Cannot open "http://pear.phpunit.de/channel.xml" (File http://pear.phpunit.de:80/channel.xml not valid (received: HTTP/1.1 410 Gone )) Trying to discover channel pear.phpunit.de over https:// instead Discovery of channel "pear.phpunit.de" failed (channel-add: Cannot open "https:/

authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]

喜夏-厌秋 提交于 2019-12-18 18:37:39
问题 i am trying to send email with attachment in PHP using SMTP and PEAR but getting the error as "authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]" <?php require_once "Mail.php"; // PEAR Mail package require_once ('Mail/mime.php'); // PEAR Mail_Mime packge $from = "Your Mom <sender@gmail.com>"; $to = "Me <recepient address@gmail.com>"; $subject = 'Call Me!'; $headers = array ('From' => $from,'To' => $to, 'Subject' => $subject); // text and html

Best way to send 10,000+ emails with PEAR/Mail_Queue

只愿长相守 提交于 2019-12-18 13:48:13
问题 I have a cron which generates the whole mail info and puts in a database table using $mail_queue->put(.....) with an option to delete emails after they're sent. Here's where I need a little help: What is the best way to send the emails after I have the above info? Running the $mail_queue->sendMailsInQueue() right away, using other cron job(s) or something else? The server limit by the way is 100 emails / minute. Currently the last csv diff for Mail_Queue is not applied (currently working with

How to modify existing excel file using PHP?

自作多情 提交于 2019-12-18 13:33:31
问题 I have a excel i need to add some more sheets into the excel using PHP, i have used PEAR, there i tried only can write excel and read a file, not able to read and modify the file, guys can you help me in this? Thanks in advance Prabu 回答1: You will need 2 pear packages PHP-ExcelReader package Spreadsheet_Excel_Writer package What you need to do is read first the excel file use PHP-ExcelReader package It reads the binary format of XLS files directly and can return values and formats from any

How do I correctly install PHPUnit with PEAR?

对着背影说爱祢 提交于 2019-12-18 10:33:16
问题 I have had to de- and reinstall a newer version of PHPUnit following these directions. Now when I'm launching this line sudo pear install --alldeps phpunit/PHPUnit I see an error message, that looks like this. Unknown remote channel: pear.symfony.com phpunit/PHPUnit requires package "channel://pear.symfony.com/Yaml" (version >= 2.1.0) No valid packages found If I install just Yaml by launching sudo pear install symfony/YAML an older version (1.0.6) will be installed that doesn't meet the

Using PEAR package Horde_Text_Diff

狂风中的少年 提交于 2019-12-18 08:55:04
问题 I installed Horde_Text_Diff, which supersedes Text_Diff. Here's the problem: when I try to use it, it gives me: Class 'Horde_Text_Diff_Engine_Native' not found I looked at the files, and it looks like there are fifteen or so classes that depend on each other, and none of the files include each other. Do I have to do this manually? Again, there are about fifteen files. Is this how PEAR packages are supposed to work? 回答1: You need to use a PSR-0 compatible autoloader that automatically includes

Fatal error: Class 'PEAR' not found in /home/user1/public_html/go-pear.php on line 697

。_饼干妹妹 提交于 2019-12-18 04:53:24
问题 When trying to install PEAR by running go-pear.php (from the root of a cPanel GoDaddy hosted account), I get the following error: Starting installation ... Loading zlib: ok Bootstrapping Installer................... Bootstrapping PEAR5.php............(remote) ok Bootstrapping PEAR.php............(remote) ok Bootstrapping Archive/Tar.php............(remote) ok Bootstrapping Console/Getopt.php............(remote) ok Fatal error : Class 'PEAR' not found in /home/alessio1/public_html/go-pear.php

Installing PEAR and PHPUnit with xampp

為{幸葍}努か 提交于 2019-12-17 22:07:26
问题 I am trying to get PHPUnit up and running the following are the steps I am currently following: ### Install new PEAR Version needed for PHPUnit 3.X ### Download: http://pear.php.net/go-pear.phar Save it under C:\xampp\php Open a command prompt and go to C:\xampp\php Type "php go-pear.phar" (Installs new PEAR) Type "pear update-channels" (updates channel definitions) Type "pear upgrade --alldeps" (upgrades all existing packages and pear) Type "pear channel-discover components.ez.no" (this is

PHP: PEAR mail help

折月煮酒 提交于 2019-12-17 17:54:30
问题 I'm trying out the mail pear package. It successfully sends an email but give me the following error: Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ClientPortal\classes\SupportTickets.php on line 356 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\PHP\PEAR\Mail

Can't install PHPUnit via PEAR, requires PEAR Installer >= 1.9.2, can't upgrade PEAR from 1.9.0

吃可爱长大的小学妹 提交于 2019-12-17 06:53:07
问题 I read the other PHPUnit installation questions but haven't had any success. What is going on with my PEAR install? $ sudo pear update-channels Updating channel "components.ez.no" Channel "components.ez.no" is up to date Updating channel "doc.php.net" Channel "doc.php.net" is up to date Updating channel "pear.php.net" Channel "pear.php.net" is up to date Updating channel "pear.phpunit.de" Channel "pear.phpunit.de" is up to date Updating channel "pear.symfony-project.com" Channel "pear.symfony