pear

PHP Pear - adding variables to $body message

浪尽此生 提交于 2019-12-04 06:04:59
问题 This is my HTML form, which is inside a little box on my site. <form name="contactform" action="contact/form-mailer.php" method="post"> <p>*Name: <input name="Name" id="Name" size="25"></p> <p>*Pickup from: <input name="pfrom" id="pform" size="25"></p> <p>*Destination: <input name="destin" id="destin" size="25"></p> <p>*E-mail: <input name="Email" id="Email" size="25"></p> <p>*Phone: <input name="Phone" id="Phone" size="25"></p> <p><input type="submit" value="Submit" name="submitform"><input

Netbeans-PHPUnit “No tests executed” error

痴心易碎 提交于 2019-12-04 05:29:17
I am newbie to any kind of testing. I just installed pear and PHPUnit using this doc . I use netbeans 7.3.1. I also installed skeletongenerator running this command : pear install phpunit/PHPUnit_SkeletonGenerator . I Followed the steps listed in this testing with PHPUnit to integrate PHPUnit to netbeans. As described in Installing PHPUnit section of that doc, by clicking search button under Netbeans->preferences->unit testing my netbeans recognizes PHPUnit installation. I followed all the steps to add sample Calculator project and generate test class. I did that. But when I run the tests by

Spreadsheet_Excel_Writer data output is damaged

笑着哭i 提交于 2019-12-04 04:08:36
I use Spreadsheet_Excel_Writer to generate .xls file and it works fine until I have to deal with a large amount of data. On certain stage it just writes some nonsense chars and quits filling certain columns. However some columns are field up to the end (generally numeric data) I'm not quite sure how the xls document is formed: row by row, or col by col... Also it is obviously not an error in a string, because when i cut out some data, the error appears a little bit further. I think there is no need in all of my code here are some essentials $filename = 'file.xls'; $workbook = & new Spreadsheet

PHP rsa get public key from pem file

别等时光非礼了梦想. 提交于 2019-12-04 01:50:50
问题 How can i get publickey from pem file which is created based on rsa 364. installed crypt(RSA.php) library still getting below error Fatal error: Call to undefined method Crypt_RSA::loadKey() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\rsa.php $file = "C:\key_file.pem"; $keypair = Crypt_RSA_KeyPair::fromPEMString(file_get_contents($file)); $public_key = $keypair->getPublicKey(); $rsa_pub_key = Crypt_RSA_Key::fromString($public_key->toString()); $rsa_obj = new Crypt_RSA;

PEAR package install fails

送分小仙女□ 提交于 2019-12-03 17:47:53
问题 i try to install packages from pear.phpqatools.org/phpqatools First of all command pear config-get php_dir returns D:\Users\xampp\php\pear and I do not have rights to install on C drive. Then according the instructions from http://phpqatools.org/ I enter : pear config-set auto_discover 1 pear install pear.phpqatools.org/phpqatools I have also tried to enter: pear install --alldeps pear.phpqatools.org/phpqatools But result of all these attempts is a failure... This is a log: Package "pear

Why am I receiving an error when installing PEAR?

落花浮王杯 提交于 2019-12-03 17:04:58
问题 I am trying to install PEAR for use with PHP. As i read on the installation instructions at http://pear.php.net/manual/en/installation.getting.php , I am supposed to run the file go-pear.bat which I have in my C:\wamp\bin\php\php5.3.0 directory. According to all the installation guides I have read, it should install and ask me a series of installation questions, but I am receiving the following error: phar "C:\wamp\bin\php\php5.3.0\PEAR\go-pear.phar" does not have a signature PHP Warning:

How to install PEAR with EasyPHP 5.3.8?

我的梦境 提交于 2019-12-03 16:57:26
I'm learning Yii and following ebook written by Jeffrey Winesett , the application is built upon TDD. So I need to install PHPUnit to write unit test, which leads me to posts help installing PEAR for my Windows 7 (ref. link 1 , link 2 ). And in those above sites, the author keep telling to use go-pear.bat which doesn't exists in my EasyPHP 5.3.8 which also be the latest version at the time of speaking. Even in this EasyPHP forum post we cannot find the answer. So the question is: How to install PEAR with EasyPHP 5.3.8? Regards, Nam ps. I'm using: Netbeans PHP 7.0.1 as IDE for PHP. EasyPHP 5.3

Installing PEAR on wampserver

£可爱£侵袭症+ 提交于 2019-12-03 16:30:03
问题 All the guides for installing PEAR on wampserver, such as the Symfony guide, say I am to run a go-pear.bat script within some PEAR directory. I am on wampserver 2.1 and there is no PEAR directory and no go-pear batch script to be found. Is this just different because I have a newer version? Is there somewhere I can download these missing installation scripts? 回答1: It's not installed per default on all setups. But you can download the plain go-pear script for that: http://pear.php.net/go-pear

Using Mail_Mime to send attachment to GMail, receiving “noname” attachment

不羁岁月 提交于 2019-12-03 16:21:02
I've got a pretty simple website form that can take attachments. It sends to a gmail address using gmail's smtp. Everything is working great except that the file arrives as "noname" - no filename or extension. If you download the attachment and rename it with the correct filename, the file opens just fine. I've tried adding more arguments to addAttachment() such as the filetype and the filename, but they don't show up in the email. When I click on "Show Original" in gmail, this is all I see in the attachment section (they don't change at all, no matter what arguments I use): Content-Transfer

Problems installing Symfony 2.4.1 lib-icu 4.4 dependency

余生颓废 提交于 2019-12-03 16:10:59
I'm having a problem identical to this one , but the solution provided there isn't working for me. I downloaded the Symfony 2.4.1 Standard Vendors with Vendors package from the Symfony Downloads Page . After extracting the files and downloading composer.phar, I run php composer.phar install and get this error: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. Problem 1 - symfony/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has