PHP openssl_sign DIES [英] PHP openssl_sign DIES

查看:85
本文介绍了PHP openssl_sign DIES的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在PHP中使用openssl_sign,但每次页面显示以下内容:

I am trying to use openssl_sign in PHP but every time the page says:

无法显示页面.它引发错误.

Cannot display the page. It throws error.

如果我放了die("hello");就在openssl_sign函数之前,它会显示你好,但是如果我在那之后放,我将得到Internet Explorer错误无法显示页面,连接已终止或任何消息的消息...

if i put die("hello"); right before openssl_sign function then it displays hello but if i put right after then i get internet explorer error cannot display page, connection has been terminated or whatever the message goes...

我尝试了ini设置并报告了错误,并检查了php和apache的运行状态,并且没有nay错误.

I tried ini set and error reporting and checking loogs of php and apache and there are no nay errors.

有人有任何线索,或者至少可以解释一下我吗?

someone have any clue or can at least explain me?

谢谢!

推荐答案

在使用Google PHP客户端库时,我遇到了这个问题. 遵循本主题的答案: PHP openssl_public_encrypt导致页面超时/连接重置?,我的问题解决了. 希望此注释对您也有帮助.

I have this problem when working with Google PHP Client Library. Following the answer in this topic: PHP openssl_public_encrypt causing Page Timeout/Connection Reset?, my problem is solved. Hoping this note will help you too.

在xampp/apache/bin文件夹中替换以下两个文件:

Replace the following two files in your xampp/apache/bin folder:

  • libeay32.dll
  • ssleay32.dll 在您的xampp/php文件夹中使用相同名称的文件.这个问题立即为我解决了.
  • libeay32.dll
  • ssleay32.dll with the files of the same name in your xampp/php folder. The issue was resolve for me immediately.

这篇关于PHP openssl_sign DIES的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆