A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2008 yearUnable to find the socket transport “https” - page 1
User InfoPosts
Unable to find the socket transport “https”#1
I'm using this to check for the availability of a URL:

$fp = fsockopen("$url", 443, $errno, $errstr);


and I get this error back...

Warning: fsockopen() [function.fsockopen]: unable to connect to https://example.com/soapserver.php:443 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in C:\Home etc etc....

I'm using an IIS server btw,( no its not my doing! ) so I think its something to do with not having open-ssl, but I'm not sure. Can anyone help please?

I did a phpinfo() and I do have ssl, but on IMAP and cURL, thats all.

Any ideas?

posted date: 2008-12-18 09:30:00


Re: Unable to find the socket transport “https”#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2008-12-18 09:30:01


Re: Unable to find the socket transport “https”#3
You should be using just the hostname, not the URL in the fsockopen call. You'll need to provide the uri, minus the host/port in the actual HTTP headers. As @Martijin noted, and as listed in the manual page, you'll need to preface your host name with ssl:// for SSL or tls:// if using transport layer security.Manual page for fsockopen. Look at Example #1.

posted date: 2008-12-18 09:33:00


Re: Unable to find the socket transport “https”#4
also for ssl you need to prefix the host with ssl://

posted date: 2008-12-18 09:41:00


Re: Unable to find the socket transport “https”#5
This is the real answer, but tvanfosson clarified it :)

posted date: 2008-12-19 04:28:00


Re: Unable to find the socket transport “https”#6
Uncomment the line: extension=php_openssl.dll in php.ini

posted date: 2011-01-30 11:17:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.