pear

Phpize under Windows

好久不见. 提交于 2019-11-29 08:21:29
I'm trying to follow the instructions here: https://code.google.com/p/php-sweph/wiki/build to compile a PHP extension. My OS is Windows XP. I'm unable to find "phpize" to do the command. However, I've installed Pear for PHP. is it something only for Linux or is there a way to compile with phpsize with Windows? In windows compile script design to compile php itself and should add your extension to compile with php ... On Windows, you don't call phpize but instead you call buildconf.bat. Open a Visual Studio developer command prompt (either 64 or 32 bit), and run cd C:\php-src buildconf.bat -

RSA Encrypt in PHP to decrypt in .NET

断了今生、忘了曾经 提交于 2019-11-29 04:05:18
In PHP I am RSA encrypting a message to be decrypted by .NET application... but I keep getting a "Bad Key" exception from .NET.... For RSA encryption, I am using PEAR class Crypt_RSA-> encrypting with the public key (which is a modulus, exponent pair) I get from working encryption system in .NET... I guess the easiest question would be-> does "Bad Key" mean it is not able to decrypt the message whatsoever? IE, it is not encrypted correctly? The harder question is-> Is there anything specific about RSA encryption that causes quirks between .NET and PHP? user260294 Security Warning : Use OAEP,

What is the difference between PEAR and Composer?

和自甴很熟 提交于 2019-11-29 02:17:36
问题 PEAR is used to install a PHP software package and Composer is used for the same thing. I believe Composer handles dependencies better but is that the only difference? Can anybody explain the difference between these two package managers and tell me when to use which? 回答1: It might be a bit soon to regard PEAR as deprecated but I don't believe it will take long before it is. Composer is thriving and mature with a lot of packages and and active development. Therefore it might be better to use

Problem with PHP PEAR Mail

大兔子大兔子 提交于 2019-11-28 23:22:36
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@host.com>'; $s = 'CPA TEST'; $b = "name: $n email: $e"; include("mail.php"); echo "after include"; /* mail

sudo pecl install apc returns error

扶醉桌前 提交于 2019-11-28 21:01:06
I run the command: sudo pecl install apc The file gets downloaded, the configuration succeeds, then make is launched and I get the following error. /usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory Is there a way to fix it? Chris Henry PCRE is a dependency for installing APC. You can install it pretty quick with yum install pcre-devel or apt-get install libpcre3-dev once it's installed, re-run sudo pecl install apc sudo apt-get install libpcre3-dev is the answer. So to be able to install pecl [install extension] the following packages are required: sudo

How to set up PEAR on Mac OS X 10.5 Leopard

江枫思渺然 提交于 2019-11-28 20:50:13
I'm ultimately trying to install PEAR so I can easily install PHPUnit. I want to set up a Mac, Apache, MySQL, PHP, PHPUnit development environment so I can test locally. I already have Apach, MySQL and PHP working. Now all I need is PHPUnit, which means I need PEAR to install it. I have searched all over, and there are a few variations of "the tutorial" on how to install PEAR on Mac OS X 10.5. However, I can't seem to get any of them to work! Has anyone had success with this? I'm not totally confident that I have everything set up as it should be, so if you could include the "default" Mac OS X

Can't install PEAR on Windows 7, Structures/Graph error

删除回忆录丶 提交于 2019-11-28 17:57:16
I just did a clean install of Windows 7. I've installed Apache, Mysql and PHP 5.3.5 all separated (not using XAMPP/others). I'm getting the following error in the install: ERROR: unable to unpack phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar The full stack trace is: C:\Web\php-5.3.5>go-pear.bat Are you installing a system-wide PEAR or a local copy? (system|local) [system] : system Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of

How do I diagnose this PHP segmentation fault?

笑着哭i 提交于 2019-11-28 16:29:00
问题 I am running a command-line PHP job that is resulting in a Segmentation Fault. This job has worked for a long time, but it processes something that is emailed in. Apparently there's something in this email that's break it, but I have no idea what. If I put the core file in gdb, it's really no help: $ gdb /usr/local/bin/php core.20381 GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is

Installing PEAR and PHPUnit with xampp

 ̄綄美尐妖づ 提交于 2019-11-28 16:14:14
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 needed for PHPUnit) Type "pear channel-discover pear.symfony-project.com" (also needed by PHPUnit) Type

PEAR Mail unable to connect to Gmail SMTP, failed to connect to socket

扶醉桌前 提交于 2019-11-28 11:56:34
Facts I am using PEAR Mail, I want to use gmail SMTP to send a mail. I have Apache/2.4.27 (Win64) PHP/7.2.0beta3, PEAR 1.10.15, Mail 1.4.1, Net_SMTP 1.8.0, Net_Socket 1.2.2. I went to php.ini and added extension = php_openssl.dll . The error.log gives no ssl-related errors. Here is the code require_once "Mail.php"; $from = '<slevin@gmail.com>'; $to = '<slevinkelevra@gmal.com>'; $subject = 'Hi!'; $body = "Hi,\n\nHow are you?"; $headers = array( 'From' => $from, 'To' => $to, 'Subject' => $subject ); $smtp = Mail::factory('smtp', array( 'host' => 'ssl://smtp.gmail.com', 'port' => '465', 'auth' =>