|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-08 10:58 UTC] sander@php.net
[2002-11-08 12:02 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 21:00:02 2025 UTC |
Apache 1.3.27, OpenSSL 0.9.6b When adding ssl:// to my fsockopen routine it fails to open a connection but gives no reason for failure. If I remove ssl:// from the command it work fine and the server disconnects for failing to establish an ssl connection as I would expect. <?php // This opens a standard socket connection //$fp = fsockopen("mywebsite.com", 4437, $errno, $errstr); // This doesn't open a socket or give a reason for failure $fp = fsockopen("ssl://mywebsite.com", 4437, $errno, $errstr); if (!$fp) { echo "ERROR: $errno - $errstr<br>\n"; } else { echo "OK<br>\n"; fwrite($fp,"my data is here\n"); echo fread($fp, 26); fclose($fp); } ?>