|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-10-28 04:40 UTC] hill at bluecarrots dot com
Description: ------------ I get the warning at the top of the page. Several refreshes of the browser rectifies. Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/.sites/.blah....php on line 14 Warning: fsockopen(): unable to connect to blah.com:80 in /home/.sites/blah.....php on line 14 Resource temporarily unavailable (11) Reproduce code: --------------- Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/.sites/.blah....php on line 14 Warning: fsockopen(): unable to connect to blah.com:80 in /home/.sites/blah.....php on line 14 Resource temporarily unavailable (11) Expected result: ---------------- I expect the page to connect securely to a secure server and send some secure details. I get the warning at the top of the page. Several refreshes of the browser rectifies. I have to use this PHP code, which has been provided by the Payment provider, to get to a server that takes online payments, some information is first sent securely in order to reach the payment page on the Payment providers server. Actual result: -------------- The simle page takes time to load and when it does the fsockopen warning is present. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 16:00:01 2025 UTC |
well there must be more than just forgotten ssl support. i have php compiled with: '--with-openssl' and still if i do a fsockopen i end up with no socket AND a success message. if this is not a bug what else would be one? i do: $fp = fsockopen("http://www.webseite.com", 80, $errno, $errstr, 4); if(!$fp){ // this will echo the errorno: 0 and success message :p echo "$errstr ($errno)<br />\n"; }else{ // stuff } Script output: Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/htdocs/.... on line ... Warning: fsockopen() [function.fsockopen]: unable to connect to http://www.website.com:80 in /www/htdocs/.... on line ... Success (0) System is a Suse Linux / PHP 4.3.1 same script works on windows and no i do not upgrade to php5 just for the taste of it :p so me too would vote for a fix! any comments welcome. thanks for doing php(4) :-)