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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
foobaa
Forum Commoner
Posts: 40
Joined: Tue Feb 13, 2007 10:36 am

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

Post 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
foobaa
Forum Commoner
Posts: 40
Joined: Tue Feb 13, 2007 10:36 am

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

Post 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);
Post Reply