pear

How do you force PEAR to download alpha/beta dependencies automatically?

社会主义新天地 提交于 2019-12-08 03:54:59
问题 When installing a package from PEAR, if the package is in alpha or beta mode, you can add a suffix to the package name to install the appropriate version; for example, running sudo pear install openid fails, but sudo pear install openid-alpha works. But how about dependencies? In the example above, the OpenID in PEAR depends on 4 other packages that are also in alpha/beta. Is there a way to make PEAR load the alpha/beta dependencies without manually installing each one? 回答1: pear config-set

sending email with PHP (preventing from being placed in spam folder)

青春壹個敷衍的年華 提交于 2019-12-08 02:26:21
问题 i am trying to send email using PHP scripts... however, the recipient is receiving it in his/her SPAM folder -this is not the desired result (I would like to have it sent directly to their inbox so that I don't have to warn them to look in their SPAM folder). below is the code I use to send the email using PEAR... what changes can I make to prevent the emails from going into the SPAM folder? send("test.user@gmail.com", $headers, $body); ?> 回答1: In general, email is classified as spam or not

Problems installing PHP EzComponents using pyrus

ⅰ亾dé卋堺 提交于 2019-12-07 21:07:47
问题 It seems that the Ez Components repository will not play nice with pyrus. It seems to 302 when pyrus tries to download the package. Has anyone had any luck installing this? It's a requirement for PHPUnit. C:\wamp\bin\php\php5.3.5>php pyrus.phar install ezc/eZComponents Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D Using PEAR installation found at pyrus Downloading components.ez.no/eZComponents PEAR2\Pyrus\Package\Exception: Invalid abstract package components.ez.no

Installing php-soap with yum and pear both fail

為{幸葍}努か 提交于 2019-12-07 19:47:54
问题 I am trying to install the SOAP extension for PHP on a Centos 6.4 server. I am fairly unfamiliar with package managers, installing packages from the CLI and configuring them within PHP. I am fairly competent with managing the php.ini and other PHP config files (soap.ini etc). I have tried installing this using the command: yum install php-soap but this gives me the following error: yum install php-soap Loaded plugins: downloadonly, fastestmirror Setting up Install Process Loading mirror

Installing phpDocumentor using PEAR

帅比萌擦擦* 提交于 2019-12-07 16:48:24
问题 On the home page of http://www.phpdoc.org/, on http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_phpDocumentor.quickstart.pkg.html, and on https://github.com/phpDocumentor/phpDocumentor2, instructions to install phpDocumentor are: pear channel-discover pear.phpdoc.org pear install phpdoc/phpDocumentor When I do so, I see that it is deprecated: [root@desktop ~]# pear channel-discover pear.phpdoc.org Adding Channel "pear.phpdoc.org" succeeded Discovery of channel "pear

PHP Doctrine Beginner: Doctrine\ORM\Tools\Setup not found

独自空忆成欢 提交于 2019-12-07 03:46:30
问题 im a beginner with doctrine. I just installed pear + doctrine 2.3.3 and want to test it. to test doctrine i wrote a class named "person" /** * @Entity */ class person { /** @Id @Column(type="integer") @GeneratedValue * */ private $id; /** @Column(type="string") * */ private $name; /** @Column(type="string") * */ private $surname; //some getters and setters ... } after that i made my bootstrap.php file, bootstrep_doctrine.php and cli-config.php files and run the command: doctrine orm:schema

Install PEAR with Wamp 2.1

五迷三道 提交于 2019-12-07 00:45:27
问题 I want to install PEAR on my windows 7. I have Wamp 2.1 with php 5.3.4 It seems that there's no such files as "go-pear.bat" in this new version of wamp. Then how can I install PEAR ? Thank you. 回答1: Please follow the PEAR installation instructions on the PEAR website. And yes, you can follow the Unix steps to get a go-pear.phar file. 回答2: I have followed these steps and it works for me 1. download go-pear.phar right from pear website. http://pear.php.net/go-pear.phar 2. Copy this file in c:

Non-static method PEAR::isError() should not be called statically

久未见 提交于 2019-12-06 19:14:11
问题 After upgrading from RHEL 5x to CentOS 6x, I started seeing these errors in my httpd log: PHP Strict Standards: Non-static method PEAR::isError() should not be called statically in /web/sites/blah/somescript.php on line 33 I saw similar errors for MDB2. More on that in a sec. somescript.php: 32 $mdb2_dbx = MDB2::factory($dsn_mdb2, $mdb2_options); 33 if (PEAR::isError($mdb2_dbx)) 34 { 35 $err = '<p>Cannot connect to database: ' . $mdb2_dbx->getMessage(); 36 errorHandler($err); 37 } The first

How can I get a phpunit.bat after install phpunit via PEAR?

大城市里の小女人 提交于 2019-12-06 18:14:59
问题 I need a phpunit.bat to configure my NetBeans IDE. I'm using wamp, and I just install phpunit via pear using these instructions: Before start using PEAR, Update by downloading last go-pear from http://pear.php.net/go-pear.phar and save it into: C:\wamp\bin\php\php5.3.3\PEAR Then: cd C:\wamp\bin\php\php5.3.0> php -d phar.require_hash=0 PEAR/go-pear.phar pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear channel-discover pear.symfony-project.com pear install

Why is the `NAME` attribute considered unsafe?

最后都变了- 提交于 2019-12-06 13:55:55
问题 I'm passing user-generated HTML into a database and I'm trying to make sure that no malicious code is passed through. One of the steps I'm taking is to run passed code through pear's HTML_Safe class to remove vulnerable markup. However, one thing I've noticed is that the name attribute of submitted elements gets removed. Sure enough, when you look at the source code, name is one of the few attributes that's blacklisted by default: http://pear.php.net/package/HTML_Safe/docs/latest/HTML_Safe