草庐IT

PEAR_PackageFileManager

全部标签

php - 无法在 PHP5 中安装 PEAR

我试图在我的php(XAMPP)中安装PEAR。但是我收到以下错误..>D:\xampp\php>go-pearmanifestcannotbelargerthan100MBinphar"D:\xampp\php\PEAR\go-pear.phar"PHPWarning:require_once(phar://go-pear.phar/index.php):failedtoopenstream:pharerror:invalidurlornon-existentphar"phar://go-pear.phar/index.php"inD:\xampp\php\PEAR\go-pear.

php - 使用 yum 和 pear 安装 php-soap 都失败

我正在尝试在Centos6.4服务器上安装PHP的SOAP扩展。我对包管理器、从CLI安装包并在PHP中配置它们相当不熟悉。我相当有能力管理php.ini和其他PHP配置文件(soap.ini等)。我尝试使用以下命令安装它:yuminstallphp-soap但这给了我以下错误:yuminstallphp-soapLoadedplugins:downloadonly,fastestmirrorSettingupInstallProcessLoadingmirrorspeedsfromcachedhostfiledrivesrvr|951B00:00ResolvingDependenci

php - 在 wamp 中卸载 pear

我错误地安装了PEAR,我觉得我安装错了,现在我只想卸载PEAR,告诉我如何在WAMP中卸载PEAR..(对于本地系统) 最佳答案 PEAR只是一组PHP库。只需手动删除您的PEAR文件夹即可。 关于php-在wamp中卸载pear,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/2995580/

PHP 错误的文件夹? include_path ='.:/usr/share/php:/usr/share/pear'

我需要在我的网络服务器上安装此功能。此错误消息正在寻找/usr/share/phpCOLON/usr/share/pear我的php安装位于/usr/share/php5中,我没有/usr/share/pear文件夹冒号在语法中是什么意思,“和”?如果路径错误,我不确定如何在此脚本中更改它,我不想将share/php5更改为php,或者是推荐? 最佳答案 Whatdoescolonmeaninthatsyntax,"and"?是的,类似的东西。它是路径分隔符,您可以将其与逗号“,”进行比较。ifthepathiswrongI'mno

php - 使用 PEAR Mail 扩展时,可以使 PHP 忽略静态方法错误吗?

我正在使用PHP5的PEARMail扩展。我在发送邮件时遇到了困难,因为它返回了这个错误:Non-staticmethodMail::factory()shouldnotbecalledstatically。这是我的代码:$from="Stephen";$to="helper";$subject="EmailTest!";$body="emailtestbody";$host="smtp.nvrforget.com";$username="username@nvrforget.com";$password="*************";$headers=array('From'=>$

PHP PEAR 邮件 '='

当通过PEAR发送HTML电子邮件时,虽然它在电子邮件客户端上正确呈现,但在查看消息源时,文本中有很多=符号。示例blahblahblahblahblahblahblahblahblahblahblahblahblahblah=blahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblah=blahblahblahblahblahblahblahblahblahblahblahblahblahblahblahblah=blahblahblahblahblahblah知道为什么以及如何删除它们吗?它们会引起任何问题

php - Pear 编码标准的质疑

正在关注PearCodingStandards:我应该在私有(private)方法之前使用_还是只为私有(private)属性使用?我应该为方法使用methodName还是method_name?我应该使用public$fooBar还是public$foo_bar?谢谢。 最佳答案 ShouldIuse_beforeprivatemethodsorjustforprivateproperties?在所有私有(private)成员名称前使用_。这包括属性和方法。ShouldIusemethodNameormethod_nameform

php - cPanel Pear Mail : failed to open stream 错误

我已经通过cPanel安装程序安装了Pear,并安装了Mail包(它还自动安装了Net_Mail和Net_Socket包)。但是,从我发送电子邮件的PHP文件中,我收到以下错误:Warning:include_once(Net/SMTP.php)[function.include-once]:failedtoopenstream:Nosuchfileordirectoryin/usr/local/lib/php/Mail/smtp.phponline348Warning:include_once()[function.include]:Failedopening'Net/SMTP.ph

PHP PEAR send_mail 无法使用名称和电子邮件设置发件人

我正在尝试使用此脚本发送电子邮件$to='example@example.com';$headers['To']=$to;$headers['From']='"MyName"';$headers['Return-Path']='examlpe@example.com';$headers['Subject']='Subject';$auth=array('host'=>MAIL_HOST,'auth'=>true,'username'=>MAIL_USER,'password'=>MAIL_PASS);$smtp=Mail::factory('smtp',$auth);$mail=$sm

php - 需要帮助升级 PEAR 以安装 PHPUnit

我正在尝试使用PEAR安装PHPUnit。这是我正在运行的...PEARVersion:1.7.2PHPVersion:5.3.8-ZS5.5.0ZendEngineVersion:2.3.0Runningon:WindowsNTL-PC6.1build7600(Windows7HomePremiumEdition)i586当我尝试安装时,出现错误提示我需要升级PEAR...C:\ProgramFiles(x86)\Zend\ZendServer\bin>pearinstallphpunit/PHPUnitDidnotdownloadoptionaldependencies:phpun