PHP Classes

SSL Functionality

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  SSL Functionality  >  (Un) Subscribe thread alerts  
Subject:SSL Functionality
Summary:On a standalone PHP installation.
Messages:3
Author:Michael SOmeone
Date:2007-05-03 11:25:59
Update:2007-05-05 06:52:40
 

  1. SSL Functionality   Reply   Report abuse  
Picture of Michael SOmeone Michael SOmeone - 2007-05-03 11:25:59
Manuel, i am having some issues here, my code is perfect and it's working fine on my hosted web server, but when i try and run it straight from a php executable on my hard drive, it does not function the way it should! I have been pulling my hair out for a day now trying to figure out why it runs on my web host and does not run on my own computer.

It uses yahoo's login system, and they use SSL right, and since most windows computers don't have SSL installed then trying to run the yahoo scripts from PHP on your own machine will lead to no errors except it won't return anything because it doesn't have ssl support and so cannot communicate with the yahoo server from php? Do you think this is the problem? It's all i can think of.

  2. Re: SSL Functionality   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-03 19:36:28 - In reply to message 1 from Michael SOmeone
You need to have either the OpenSSL or Curl extensions enabled on the PHP installation you are using. If you have neither, the class returns a clear error letting you know about that.

I am just not sure what you mean by "it won't return anything". Can you enable debugging in the class and post a dump of the output when the class fails to return anything?

  3. Re: SSL Functionality   Reply   Report abuse  
Picture of Michael SOmeone Michael SOmeone - 2007-05-05 06:46:16 - In reply to message 2 from Manuel Lemos
Thankyou Manuel

I Have indeed checked if the class is outputting any error messages and it is outputting the following as expected:

"establishing SSL connections requires the OpenSSL extension enabled."

Do i need OpenSSL and cURL? Or just one? I Presume i need both right? Thankyou for your help.