Page 1 of 1

using htaccess... Unable to find the socket transport "ssl"

Posted: Sat Oct 18, 2008 7:09 am
by foobaa
Hi,

I'm using fasthosts and having a problem with code I've used before. The error coming up is:
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://www.paypal.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
The line that causes this is:

Code: Select all

$fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30);
Is there any way to fix this using a .htaccess file? I don't have access to php.ini.

Thanks

Re: using htaccess... Unable to find the socket transport "ssl"

Posted: Sat Oct 18, 2008 9:35 am
by foobaa
I've found the problem - or at least a solution to my problem...

Using the following code instead worked - I think paypal's ipn snippet could do with some work!!

Code: Select all

$fp = fsockopen ("www.paypal.com", 80, $errno, $errstr, 30);