pear

Pear error messages with PHP5.3.0

时光毁灭记忆、已成空白 提交于 2019-11-30 23:21:14
I get a LOT of errors when i Open up a newly installed PEAR package on a WAMP server. Here's the error messages. What can i do? Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 650 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 697 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php on line 757 Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\PEAR\PEAR\Config.php

What is wrong with this PHP script to send mail using Pear Mail?

时间秒杀一切 提交于 2019-11-30 20:49:24
I have this script: require_once "Mail.php"; $from = "Stephen <username@nvrforget.com>";//Google apps domain $to = "username@gmail.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "mail.nvrforget.com"; $username = "username@nvrforget.com"; $password = "password"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo

Replacement for PEAR: MDB2 on PHP 5.3

心不动则不痛 提交于 2019-11-30 18:38:38
I've been using pear packages in php for years. I'm in the process of upgrading/moving a sites that uses the MDB2 pear package and it has not been updated for PHP 5.3.X. In 5.3, MDB2 is returning those new annoying errors. Unknown: Assigning the return value of new by reference is deprecated in /usr/local/lib/php/MDB2.php on line 390 I know I can change my error reporting settings to get rid of them, but I'd rather not make any exceptions. Anyway, Is anyone else using MDB2 these days and have a solution? Are there similar database packages you recommend? I would definitly go for an ORM, at

Issues while installing pear.phpunit.de/PHPUnit

↘锁芯ラ 提交于 2019-11-30 18:26:46
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://pear.phpunit.de/channel.xml" (File https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1

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

倖福魔咒の 提交于 2019-11-30 16:20:40
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 versions of email. $text = 'Hi son, what are you doing?nnHeres an picture of a cat for you.'; $html = 'Hi

How do you install PHPUnit without using PEAR on Mac OS X 10.5?

青春壹個敷衍的年華 提交于 2019-11-30 14:14:00
问题 I am having trouble installing PEAR, but I really only want to install PHPUnit. Does anyone have experience doing this? 回答1: Install via GIT You can follow the instructions from the Git README: https://github.com/sebastianbergmann/phpunit/ "git" the files and drop them in your home directory cd ~ && mkdir phpunit && cd phpunit git clone git://github.com/sebastianbergmann/phpunit.git git clone git://github.com/sebastianbergmann/dbunit.git git clone git://github.com/sebastianbergmann/php-file

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

僤鯓⒐⒋嵵緔 提交于 2019-11-30 10:35:49
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 the support on that), so I can't use the "delay" option. I had an idea to use the $seconds_to_send

How do you install PHPUnit without using PEAR on Mac OS X 10.5?

£可爱£侵袭症+ 提交于 2019-11-30 09:40:41
I am having trouble installing PEAR, but I really only want to install PHPUnit. Does anyone have experience doing this? Install via GIT You can follow the instructions from the Git README: https://github.com/sebastianbergmann/phpunit/ "git" the files and drop them in your home directory cd ~ && mkdir phpunit && cd phpunit git clone git://github.com/sebastianbergmann/phpunit.git git clone git://github.com/sebastianbergmann/dbunit.git git clone git://github.com/sebastianbergmann/php-file-iterator.git git clone git://github.com/sebastianbergmann/php-text-template.git git clone git://github.com

Problem with PHP PEAR Mail

纵饮孤独 提交于 2019-11-30 06:57:17
问题 I am trying to use PEAR Mail to send using an external smtp server. It seems to hang for a while, then the script ends. It outputs all of my "echo" statements up till the one after the send. Nothing is output past the echo that says "before send". Can anyone tell me what might be wrong here? (dummy values substituted for smtp values). Mail is not being sent. Thanks for helping! echo "start"; $n = $_POST['txtName']; $e = $_POST['txtEmail']; $t = 'Kenny <email@host.com>'; $f = 'Kenny <email

Windows Installing PHPUnit via PEAR - Installing PHPUnit via PEAR

半城伤御伤魂 提交于 2019-11-30 06:23:34
问题 When I run: peardev install phpunit/PHPUnit I get the following: No releases available for package "pear.phpunit.de/PHPUnit" install failed I have run the following: pear channel-discover pear.phpunit.de Channel "pear.phpunit.de" is already initialized and pear install --alldeps phpunit/PHPUnit No releases available for package "pear.phpunit.de/PHPUnit" install failed and pear remote-list -c phpunit CHANNEL PHPUNIT AVAILABLE PACKAGES: =================================== PACKAGE VERSION DbUnit