草庐IT

imap_last_error

全部标签

php - 是否有 php imap 扩展的替代方案

我的godaddy共享hosing服务不会为PHP启用IMAP扩展。所以我在泡菜:是否有PHP函数来替代PHP中的IMAP功能?这里是错误:Fatalerror:Calltoundefinedfunctionimap_last_error()这是我遇到问题的示例代码:$mbox=imap_open('{'.$email_host.':'.$email_port.'/pop3/novalidate-cert}INBOX',$email_username,$email_password)ordie(imap_last_error());if(!$mbox){//sendemailletti

php - Klarna 结帐返回 http_status_code 500 Internal Server Error 作为响应

我正在尝试使用他们提供的代码实现klarna结帐here.按照此链接的指示实现流程->https://docs.klarna.com/en/getting-started我正在使用docs/examples文件夹中的代码,我已将库(src文件夹)放在正确的路径中,并在我创建测试时提供了eid和共享key以及klarna提供的商店ID和共享key帐号here.//MerchantID$eid='eid';//Sharedsecret$sharedSecret='sharedsecret';我已经替换了所有文件中的所有eid和共享密码,还正确地更改了文件中的链接,i.e.example.c

PHP 脚本 fopen 无法打开流 : > Invalid argument Error

我收到警告。Warning:fopen(76561197992146126.txt):failedtoopenstream:InvalidargumentinC:\wamp\www\Download\t3.phponline6对于任何想知道的人,这是下面main.txt的内容(http://pastebin.com/53chSRRz)如果我用静态文件名替换“fopen($link.“.txt”,“a”)”,它就可以工作。但我需要$link作为文件名。这对我的设置来说是必不可少的。我正在使用WAMP2.2和PHP5.4.3运行Windows7x64 最佳答案

php - 突然的 PHP 错误 "Warning: imap_open() [function.imap-open]: Couldn' t 打开流”

好的,这段代码“运行”得很好,然后我开始尝试使用它,以便让其他人连接到他们的电子邮件,但由于各种拼写错误和这样的。自从这样做之后,突然间我根本无法连接到我的电子邮件?不久前,我使用了完全相同的连接代码,然后浏览了我的收件箱。我总是收到“警告:imap_open()[function.imap-open]:无法打开流”错误。这很奇怪,因为我使用的代码与以前完全相同,但由于遇到错误,我现在无法连接。它也需要很长时间才能做出回应。代码如下:$mailbox=imap_open('{mail.artisancodesmith.com:143/notls}INBOX','admin@artisa

php - Sugarcrm CE fatal error : sugar_file_put_contents_atomic() in wamp

我在Windows7机器上的wamp下运行SugarcrmCE,我不断收到以下错误。它只是随机发生,如果我重新加载页面它似乎工作。但是这个错误很烦人,我从来没有在这个开发环境下得到它。我知道如果这是linux,那将是一个权限问题,但权限在我看来在Windows中看起来很好。我打开了开发者模式并删除了缓存文件夹,但它仍然发生。有人知道如何防止这种情况吗?Fatalerror:sugar_file_put_contents_atomic():fatalrenamefailure'E:\wamp\www\sugargantt-project\cache\modules\Employees\t

php - fatal error :调用未定义的方法 Google_IO_Curl::authenticatedRequest()

使用GoogleContactsAPI示例中描述的内容时simple.php,和GoogleAPIPHPClientfromGitHub,版本1.0.4-beta,我收到以下错误:Fatalerror:CalltoundefinedmethodGoogle_IO_Curl::authenticatedRequest()但是,当我改变这一行时......$val=$client_svc_contacts->getIo()->authenticatedRequest($req);...到...$val=$client_svc_contacts->getAuth()->authenticat

php - fatal error : Call to a member function rowCount() on a non-object

我在我的登录中使用PDO(按照之前通过sqli的指示),我已经尝试了以下操作,但是我遇到了这个fatalerror,并且无法弄清楚要给它什么,所以它满足了错误:if($query->rowCount()>0){//sessionstuff//refreshpage}然后我试了一下:if($query->rowCount()==1){//sessionstuff//refreshpage}但我仍然得到这个:fatalerror:调用非对象上的成员函数rowCount()这是我在更改之前开始的内容:$count=$query->rowCount();最后,这是一个更好的片段,因此您可以了解

php - codeigniter - 升级 php 和 apache 后未找到 fatal error 类 'CI_Controller'

我在升级Apache从2.2.19.0到2.4.16.0和php从5.3.7.0到5.6.12.0现在我得到这个错误:Fatalerror:Class'CI_Controller'notfoundinsystem\core\CodeIgniter.phponline234CodeIgniter.php第221-235行//LoadthebasecontrollerclassrequireBASEPATH.'core/Controller.php';/***ReferencetotheCI_Controllermethod.**ReturnscurrentCIinstanceobject

php - fsockopen,连接 ssl ://imap server 时证书验证失败

我正在尝试使用fsockopen()通过php脚本连接到ssl://imapServer:CentOSLinuxrelease7.1.1503Apache:Apache/2.4.6PHP:PHP5.6.17$host="ssl://mail.example.com";$port=993;echo"Connectingwith".$host."oport".$port;$socket=fsockopen($host,$port,$errno,$errstr,30);if(!$socket){echo"Connectionfailed";}$line=fgets($socket);retu

php - fatal error : Class 'Paypal\Api\Payer' not found en sdk Paypal

我用composer安装了PayPalSDK但我的php文件CHECKOUT.php错误是:Fatalerror:Class'Paypal\Api\Payer'notfoundinC:\xampp\htdocs\pagos\checkout.phponline23结帐.php:setPaymentMethod("paypal");$item=newItem();$item->setName($descripcion)->setCurrency('MXN')->setQuantity(1)->setPrice($precio);$itemList=newItemList();$itemL