Some time ago I coded a small web page to
generate license files for one of my clients. This is a very simple app
that basically allows you to enter
some customer’s info and generate an encrypted license file. I’m not a
PHP developer but the language is very similar to C and a good framework
helps a lot.
Anyway, today 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 file.
Fatal error: Call to undefined function openssl_get_privatekey() in C:\....
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:
extension=php_openssl.dll
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.
Open Eclipse and go to Help-> Software Updates-> Find and Install Select "Search for new features to install" and click "Next" Create a New Re...Read more
Webune Offers PHP web hosting with Curl already enabled. if you are
tired of your current web hosting provider, make the switch today to
Webune!If y...Read more
Nếu là text bình thường, nên đặt trong dấu nháy đơn, nếu là text có php thì đặt dấu nháy kép, để không phải process.Thông thường bạn đặt chuỗi theo ...Read more
PHP provides several date time functions
to perform required operations with temporal data. Now, we are going to
see about PHP timestamp functions....Read more
Are you working with multiple devices like iPhone, Android and Web then
take a look at this post that explains you how to develop a RESTful API
in P...Read more
0
comments:
Post a Comment
Click to see the code! To insert emoticon you must added at least one space before the code.
0 comments:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.