Fatal Error Call To Undefined Function Openssl_pkey_get_private
Contents |
you openssl_pkey_get_private returns false to enter some customer’s info and generate an encrypted openssl_get_privatekey not working license file. I’m not a PHP developer but the language is very similar openssl_pkey_export to C and a good framework helps a lot. In my case I use CodeIgniter, which is just great. Anyway, today
Php Create Private Key
I needed to install this app on my laptop (which is running Windows 7 x64 by the way). I installed a fresh copy of XAMPP Lite, created my database and run the app. Everything worked fine except the function that generates the license fatal error: call to undefined function openssl_encrypt() file. {% codeblock lang:html %} Fatal error: Call to undefined function openssl_get_privatekey() in C:.… {% endcodeblock %} My initial reaction was to think that I needed to install the OpenSSL libraries, so I wasted half an hour looking for the files and reading how to install the binaries. But it was easier than that. XAMPPLite already installs all you need, you just need to activate the extensions you need. In this case I needed to edit the php.ini file and uncomment the line: {% codeblock lang:php %} extension=php_openssl.dll {% endcodeblock %} If you don’t have the previous line try to add it to your php.ini file. Also, if you need to know which extensions are activated, a call to phpinfo() will give you the answer. Powered by hugo
extension=php_openssl.dll去掉前面的注释
Openssl_pkey_new
2、复制php安装目录中的: libeay32.dll ssleay32.dll 至c:\windows\system32 3、复制php_openssl.dll至c:\windows\system32 4、重启IIS ---AppServ http://nowfromhome.com/activate-openssl-extension-in-php/ Win32如何打开openssl--------------------1.打开c:/windows,里面有一个php.ini文件(AppServ居然将php的配置文件移到这里来!),然后在里面搜索 ;extension=php_openssl.dll ,把前面的逗号去掉。 2.进入AppServ的安装目录,到php文件夹里面,分别搜索 libeay32.dll 和 ssleay32.dll ,把它们复制到 c:/windows/system32 下面 3.重新启动 Apache,就可以了,至于phpMailer的使用方法,请参考phpMailer的例子。 上一篇 http://m.blog.csdn.net/article/details?id=8859256 下一篇 暂无评论,我去发表~ 评论(0) apache,iis,windows,c语言,php,函数,openssl,扩展,搜索 我的热门文章 js时间戳转为日期格式 JQuery 绑定select标签的onchange事件,弹出选择的值,并实现跳转、传参 jquery,input框实时数据获取及完全改变后获取 Fatal error: Call to undefined function openssl_pkey_get_private() js表单验证(手机号码及正整数及浮點數) 相关博文 未登录 •首页 •移动开发 •Web前端 •架构设计 •编程语言 •互联网 •数据库 •系统运维 •云计算 •研发管理 •综合 0 0 0 分享 微信分享新浪微博QQ好友QQ空间 取 消
lengua no hispana requieren completar el Captcha y apretar el botón "Submit" para poder acceder con normalidad al sitio.