Re: php ssl connection timeout issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jerry Zhao wrote:
> Hi,
> 
> I am having trouble connecting to https sites using php's builtin ssl
> functions.
> I tried:
> file_get_contents('https://securesite')
> fsockopen('ssl://securesite', 443, $errno, $errstr,20)
> 
> and same errors every time:
> SSL: connection timeout
> Failed to enable crypto
> 
> Call to openssl_error_string() returns no error.
> Curl worked both within php and as standalone client.
> The strange thing is that the connection seemed to be dropped immediately
> upon contact with the server, i.e., the call to the above functions failed
> immediately, which I think contradicts the "timeout" error.
> 
> Any tips on the cause of this issue or how to debug this is appreciated.
> 
> Regards,
> 
> Jerry.
> 

Check phpinfo().  What is listed for Registered PHP Streams and
Registered Stream Socket Transports.  Also, is openssl listed under
extensions?

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux