pear

SSL issue after pear channel-update pear.php.net

安稳与你 提交于 2019-12-12 07:19:10
问题 I have XAMPP on Windows7. after update the pear.php.net channel with: pear channel-update pear.php.net and try for installing new packages, for example pecl install zmq , encountered with following message and can not install any package: Connection to 'ssl://pecl.php.net:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? I very searched in net and tried to solve it but cannot resolve it. can anyone help me for resolve that and what

Problem with update pear

偶尔善良 提交于 2019-12-12 05:51:32
问题 I am trying update Pear and I type in console: pear upgrade pear then I got error: Error getting channel info from pear.php.net: Channel pear.php.net does not support xml-rpc method package.listLatestReleases What should I do to upgrade PEAR? 回答1: You have a very very very old PEAR version that still uses the XML-RPC protocol. This is not supported anymore since a very long time. Re-installing PEAR is the only option here. 来源: https://stackoverflow.com/questions/6828190/problem-with-update

Error installing Sylius: “PHP Fatal error: require(): Failed opening required autoload.php”

最后都变了- 提交于 2019-12-12 04:07:05
问题 I tried to install Sylius (Symfony) with the command "(php bin/console sylius:install") , but it gives the below error: PHP Warning: require(C:\xampp\htdocs\acme\bin/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\acme\bin\console on line 16 Warning: require(C:\xampp\htdocs\acme\bin/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\acme\bin\console on line 16 PHP Fatal error: require(): Failed opening

Pear DB class not found

淺唱寂寞╮ 提交于 2019-12-12 03:56:23
问题 I have create a class called Database.php for interacting with MySql database using Pear Db class. Database.php <?php require_once('DB.php'); require_once('cException.php'); class DataBase { private $dsn = 'mysql://root:xxxxxx@localhost/avatar'; private $conn; //Constructor function __construct() { global $conn; $this->conn = DB::connect($dsn); if(DB::isError($conn)) { throw new DatabaseConnectionException(); } } //destructor function __destruct() { $this->conn->disconnect(); } public

Where can I find a list of PEAR DB error codes?

别来无恙 提交于 2019-12-12 01:58:28
问题 I'm trying to establish a connection to a mysql database using PEAR DB. It's throwing the following error at me: DB_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => -4 [message] => DB Error: not found [userinfo] => Unable to include the DB/dbxxxxx:xxxxx@internal-db.sxxxxx.gridserver.com/dbxxxxx_toomodern.php file for 'dbxxxxx:xxxxx@internal-db.sxxxxx.gridserver.com/dbxxxxx_toomodern' [backtrace] => Array ( [0] => Array ( [file] => /usr/local/php-5.2.14-2/share

Displaying an image with path stored in Database in a html template file with php

放肆的年华 提交于 2019-12-12 01:48:32
问题 so my problem is that i have images storesd to a location on my server (not the web root, for security purposes) and i have the path to these images stored in the database. i ues php along with pear's html_template_it to display my pages. The only successful method of displaying the images has ben to modify the headers using header("Content-type:image/type") header("Content-Disposition:inline") echo "<img src=readfile($image) />"; my problem is that this disrupts the template and whilst i get

php pear mail extension raises strict notices

末鹿安然 提交于 2019-12-12 00:49:12
问题 Note Though some of you seem to think differently, this is not a duplicate of PHP: PEAR mail message error. That question asks how to suppress the strict notices, which I have no trouble doing. My question pertains to the behavior later on (the final error_reporting call at the end of my code) after I turn error reporting back on. I am sending mail with php's pear mail extension. To avoid the strict notices that are raised when I call its functions, I turn off strict error reporting while

Install propel_generator 1.2?

落花浮王杯 提交于 2019-12-11 21:06:01
问题 I'm trying to install propel_generator version 1.2 (later versions are incompatible with the project I'm working on). I've tried pear install propel/propel_generator-1.2 But I get the following error: Failed to download propel/propel_generator, version "1.2", latest release is version 1.5.2, stability "stable", use "channel://pear.propelorm.org/propel_generator-1.5.2" to install install failed Anybody know how I can install this using Pear? 回答1: The short answer is: You can't. The explanation

How to send mail via smtp using ssl in php

蹲街弑〆低调 提交于 2019-12-11 19:43:03
问题 How can I send mail via smtp using ssl? We are able to send the simple text mail, but it's not allowing the links or certain tags in the mail to pass, we tried using pear-mail. Please suggest any options. We are using third party GMAIL and hosting is in Godaddy. All mx record are fine and earlier we were able to deviver mails when we have not used ssl, also as i mentioned we are able to send the simple text mails with ssl, so please no answers regarding hostings, just any options how to use

Different SQL result with same query in PHP and MySQL

喜你入骨 提交于 2019-12-11 19:22:56
问题 After a quick search, I haven't find solution of my problem so I post a new one. So I have to create view in a MySQL database from a Web interface (using PHP). I use a PEAR framework for the connection with MySQL(5.0.26) I have the SQL request : CREATE VIEW test AS SELECT cswc.code_de_la_copie, cswc.service_de_reference, cswc.libelle_de_la_copie, cswc.direction_de_securite_logique FROM pressi_copiesServiceWithCibles cswc LEFT OUTER JOIN pressi_servicesReferenceWithCibles srwc ON cswc.service