Jump to content

error with fsockopen function


tkm

Recommended Posts

if (!$sock = @fsockopen(((strtolower($protocol) == "https://")?"ssl://":"").$server, $port, $errno, $errstr, $this->connect_timeout)) {

 

            $this->log .= "Could not open connection. Error "

                .$errno.": ".$errstr."<br />\n";

            return false;

        }

 

the above is my code and I am getting the above error to say I can't open a connection...

 

Thank you.....

The error number I got is 0. Interestingly the errstr is "The operation completed successfully". This is after I took out @ sign and ran the script again.

Thank you for trying to sort this out for me....

But I think "Bauer418" gave me a "could-be" reason for the issue. I have HTTPS option off with my PHP. And don't see any SSL info on my phpinfo() script. I believe I need to add the library of ssl with PHP. Bro any good resource link on that? Let me give a search in google,..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.