This topic contains 1 reply, has 2 voices. Last updated by Cristián Lávaque 4 years, 10 months ago.
Topic Author | Topic |
---|---|
Posted: Friday Feb 3rd, 2012 at 1:48 am #3533 | |
The ideal PHP configuration is this:
This is the default on most servers ( allow_url_fopen = On ). s2Member will try to use cURL first. If cURL is not available, s2Member will try to use the FOPEN method, in which case the allow_url_fopen = On setting will be required. If you’re running WordPress on a Windows server:
The cURL extension is commented out ( disabled ). In ALL CASES, your installation of PHP must be compiled with support for HTTPS connections. If you’re racking your brain over problems connecting to PayPal, it’s probably because your installation of PHP is not compiled with the OpenSSL extension. In other words, your server can’t connect to any URL that starts with https://. Almost ALL major hosting companies come with OpenSSL pre-compiled. That being said… if you’re running your own server, you may have forgotten. The best way to test this, is to load this file on your server and open it in a browser. If OpenSSL was not compiled, you will get an error to that affect.
When you’re done testing the above code, it’s important to delete the file from your web server. Some search engines, such as Google, will treat a file with the above code as malicious and may flag the file/site as dangerous. The code itself is harmless, but please remember to delete the file as soon as you’re done testing.
|